Share via


XPathNavigator.SelectDescendants Method (XPathNodeType, Boolean)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Selects all the descendant nodes of the current node that have a matching XPathNodeType.

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

Syntax

'Declaration
Public Overridable Function SelectDescendants ( _
    type As XPathNodeType, _
    matchSelf As Boolean _
) As XPathNodeIterator
public virtual XPathNodeIterator SelectDescendants(
    XPathNodeType type,
    bool matchSelf
)

Parameters

  • matchSelf
    Type: System.Boolean
    true to include the context node in the selection; otherwise, false.

Return Value

Type: System.Xml.XPath.XPathNodeIterator
An XPathNodeIterator that contains the selected nodes.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.