Click or drag to resize
Json.NET

JTokenAncestorsAndSelf Method

 
Returns a collection of tokens that contain this token, and the ancestors of this token.

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

Return Value

Type: IEnumerableJToken
A collection of tokens that contain this token, and the ancestors of this token.
See Also