XPathNavigatorExtensions.XPathSelect Method (XPathNavigator, string)XPathNavigatorExtensions.XPathSelect Method (XPathNavigator, String)XPathNavigatorExtensions::XPathSelect Method (XPathNavigator^, String^)

Selects a node set, using the specified XPath 2.0 expression.

Syntax

Public Shared Function XPathSelect( _
    navigator As System.Xml.XPath.XPathNavigator, _
    expression As String _
) As System.Xml.XPath.XPathNodeIterator
public static System.Xml.XPath.XPathNodeIterator XPathSelect(
    System.Xml.XPath.XPathNavigator navigator,
    string expression
)
public:
static System.Xml.XPath::XPathNodeIterator^ XPathSelect(
    System.Xml.XPath::XPathNavigator^ navigator, 
    String^ expression
)
 

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionexpression is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionAn error occurred compiling or evaluating the XPath 2.0 expression.
InvalidCastExceptionInvalidCastExceptionInvalidCastExceptionThe return type contained an item which was not a node.