NodesBeforeSelf Method

XNode.NodesBeforeSelf 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 sibling nodes before this node, in document order.

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

'Declaration
Public Function NodesBeforeSelf As IEnumerable(Of XNode)

Return Value

Type: System.Collections.Generic.IEnumerable(Of XNode)
An IEnumerable(Of T) of XNode of the sibling nodes before this node, in document order.

This method only includes siblings in the returned collection. It does not include descendants.

This method uses deferred execution.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft