XNode.Ancestors Method
.NET Framework 4
Returns a collection of the ancestor elements of this node.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Ancestors() | Returns a collection of the ancestor elements of this node. |
|
Ancestors(XName) | Returns a filtered collection of the ancestor elements of this node. Only elements that have a matching XName are included in the collection. |