Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SelectSingleNode Method (XPathExpression)

XPathNavigator.SelectSingleNode Method (XPathExpression)

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)

public virtual XPathNavigator SelectSingleNode(
	XPathExpression expression


Type: System.Xml.XPath.XPathExpression
An XPathExpression object containing the compiled XPath query.

Return Value

Type: System.Xml.XPath.XPathNavigator
An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise null if there are no query results.


Supported in: 5, 4

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

Community Additions

© 2015 Microsoft