Click or drag to resize
Json.NET

JTokenAnnotation Method (Type)

 
Gets 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 Object Annotation(
	Type type
)

Parameters

type
Type: SystemType
The Type of the annotation to retrieve.

Return Value

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