System::Xml::XPath::XPathNavigator::Matches metod

XPathNavigator::Matches(SharedPtr<XPathExpression>) method

Bestämmer om den aktuella noden matchar det angivna XPathExpression.

virtual bool System::Xml::XPath::XPathNavigator::Matches(SharedPtr<XPathExpression> expr)
ParameterTypBeskrivning
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

Bestämmer om den aktuella noden matchar det angivna XPath‑uttrycket.

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

ReturnValue

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

Se även