Returns a collection of the ancestor tokens of this token.
| C# | Visual Basic | Visual C++ |
public IEnumerable<JToken> Ancestors()
Public Function Ancestors As IEnumerable(Of JToken)
public: IEnumerable<JToken^>^ Ancestors()
A collection of the ancestor tokens of this token.