Click or drag to resize
Json.NET

JTokenAncestors Method

 
Returns a collection of the ancestor tokens of this token.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public IEnumerable<JToken> Ancestors()

Return Value

Type: IEnumerableJToken
A collection of the ancestor tokens of this token.
See Also