DescendantNodes Method

XContainer.DescendantNodes Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a collection of the descendant nodes for this document or element, in document order.

Namespace:  System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

'Declaration
Public Function DescendantNodes As IEnumerable(Of XNode)

Return Value

Type: System.Collections.Generic.IEnumerable(Of XNode)
An IEnumerable(Of T) of XNode containing the descendant nodes of the XContainer, in document order.

Note that attributes are not considered to be nodes in LINQ to XML, so they will not be part of the collection that is returned by this method.

This method uses deferred execution.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft