Ancestors Method
.NET Framework Class Library
Extensions..::.Ancestors Method

Returns a collection of elements that contains the ancestors of every node in the source collection.

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkAncestors<(Of <(T>)>)(IEnumerable<(Of <(T>)>))Returns a collection of elements that contains the ancestors of every node in the source collection.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkAncestors<(Of <(T>)>)(IEnumerable<(Of <(T>)>), XName)Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.
Top

If multiple nodes in the source collection have the same ancestor, the ancestor will be included multiple times in the result collection. To avoid this, use the Distinct method.

This method uses deferred execution.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker