System::Xml::XPath::XPathNavigator::Matches 方法

XPathNavigator::Matches(SharedPtr<XPathExpression>) method

确定当前节点是否匹配指定的 XPathExpression

virtual bool System::Xml::XPath::XPathNavigator::Matches(SharedPtr<XPathExpression> expr)
参数类型描述
exprSharedPtr<XPathExpression>一个包含已编译的 XPath 表达式的 XPathExpression 对象。

ReturnValue

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

另见

XPathNavigator::Matches(String) method

确定当前节点是否匹配指定的 XPath 表达式。

virtual bool System::Xml::XPath::XPathNavigator::Matches(String xpath)
参数类型描述
xpathStringXPath 表达式。

ReturnValue

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

另见