Udostępnij za pośrednictwem


XPathNavigator.SelectSingleNode Method (XPathExpression)

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

Selects a single node in the XPathNavigator using the specified XPathExpression object.

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

Syntax

'Declaration
Public Overridable Function SelectSingleNode ( _
    expression As XPathExpression _
) As XPathNavigator
public virtual XPathNavigator SelectSingleNode(
    XPathExpression expression
)

Parameters

Return Value

Type: System.Xml.XPath.XPathNavigator
An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise nulla null reference (Nothing in Visual Basic) if there are no query results.

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.