System.Xml.XPath.XPathNavigator.Matches Method

Determines whether the current node matches the specified System.Xml.XPath.XPathExpression.

Syntax

public virtual bool Matches (XPathExpression expr)

Parameters

expr
An System.Xml.XPath.XPathExpression object containing the compiled XPath expression.

Returns

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

Remarks

This method has no effect on the state of the System.Xml.XPath.XPathNavigator. This method is identical to the XPathNavigator.Matches(string) method, except that a System.Xml.XPath.XPathExpression object containing the compiled XPath expression is specified, rather than an XPath expression string.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0