System::Xml::XPath::XPathNavigator::Matches method

XPathNavigator::Matches(SharedPtr<XPathExpression>) method

Avgör om den aktuella noden matchar det angivna XPathExpression.

virtual bool System::Xml::XPath::XPathNavigator::Matches(SharedPtr<XPathExpression> expr)
ParameterTypeBeskrivning
exprSharedPtr<XPathExpression>Ett XPathExpression objekt som innehåller det kompilerade XPath uttrycket.

ReturnValue

true if the current node matches the XPathExpression; otherwise, false.

Se även

XPathNavigator::Matches(String) method

Avgör om den aktuella noden matchar det angivna XPath uttrycket.

virtual bool System::Xml::XPath::XPathNavigator::Matches(String xpath)
ParameterTypeBeskrivning
xpathStringDet XPath uttrycket.

ReturnValue

true if the current node matches the specified XPath expression; otherwise, false.

Se även