| 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 public T Annotation<T>()
where T : class
Type Parameters
- T
- The type of the annotation to retrieve.
Return Value
Type:
TThe first annotation object that matches the specified type, or
null if no annotation is of the specified type.
See Also