XElement::DescendantsAndSelf Method
Returns a collection of elements that contain this element, and all descendant elements of this element, in document order.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
| Name | Description | |
|---|---|---|
![]() | DescendantsAndSelf() | Returns a collection of elements that contain this element, and all descendant elements of this element, in document order. |
![]() | DescendantsAndSelf(XName^) | Returns a filtered collection of elements that contain this element, and all descendant elements of this element, in document order. Only elements that have a matching XName are included in the collection. |
This method uses deferred execution.
