Json.NET - Quick Starts & API Documentation
Ancestors Method
NamespacesNewtonsoft.Json.LinqJTokenAncestors()()()()
Returns a collection of the ancestor tokens of this token.
Declaration Syntax
C#Visual BasicVisual C++
public IEnumerable<JToken> Ancestors()
Public Function Ancestors As IEnumerable(Of JToken)
public:
IEnumerable<JToken^>^ Ancestors()
Return Value
A collection of the ancestor tokens of this token.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.5.14908)