Click or drag to resize
Json.NET

JTokenAnnotationT Method

 
Get the first annotation object of the specified type from this JToken.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public T Annotation<T>()
where T : class

Type Parameters

T
The type of the annotation to retrieve.

Return Value

Type: T
The first annotation object that matches the specified type, or null if no annotation is of the specified type.
See Also