Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Extensions Methods

The Extensions type exposes the following members.

  NameDescription
Public method Static member Ancestors<T>(IEnumerable<T>) Returns a collection of elements that contains the ancestors of every node in the source collection.
Public method Static member Ancestors<T>(IEnumerable<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.
Public method Static member AncestorsAndSelf(IEnumerable<XElement>) Returns a collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection.
Public method Static member AncestorsAndSelf(IEnumerable<XElement>, XName) Returns a filtered collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. Only elements that have a matching XName are included in the collection.
Public method Static member Attributes(IEnumerable<XElement>) Returns a collection of the attributes of every element in the source collection.
Public method Static member Attributes(IEnumerable<XElement>, XName) Returns a filtered collection of the attributes of every element in the source collection. Only elements that have a matching XName are included in the collection.
Public method Static member DescendantNodes<T> Returns a collection of the descendant nodes of every document and element in the source collection.
Public method Static member DescendantNodesAndSelf Returns a collection of nodes that contains every element in the source collection, and the descendant nodes of every element in the source collection.
Public method Static member Descendants<T>(IEnumerable<T>) Returns a collection of elements that contains the descendant elements of every element and document in the source collection.
Public method Static member Descendants<T>(IEnumerable<T>, XName) Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.
Public method Static member DescendantsAndSelf(IEnumerable<XElement>) Returns a collection of elements that contains every element in the source collection, and the descendent elements of every element in the source collection.
Public method Static member DescendantsAndSelf(IEnumerable<XElement>, XName) Returns a filtered collection of elements that contains every element in the source collection, and the descendents of every element in the source collection. Only elements that have a matching XName are included in the collection.
Public method Static member Elements<T>(IEnumerable<T>) Returns a collection of the child elements of every element and document in the source collection.
Public method Static member Elements<T>(IEnumerable<T>, XName) Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.
Public method Static member InDocumentOrder<T> Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.
Public method Static member Nodes<T> Returns a collection of the child nodes of every document and element in the source collection.
Public method Static member Remove(IEnumerable<XAttribute>) Removes every attribute in the source collection from its parent element.
Public method Static member Remove<T>(IEnumerable<T>) Removes every node in the source collection from its parent node.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.