XPathNavigator.Matches Method (XPathExpression)

Determines whether the current node matches the specified XPathExpression.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

public virtual bool Matches(
	XPathExpression expr
)

Parameters

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

Return Value

Type: System.Boolean
Returns true if the current node matches the XPathExpression; otherwise, false.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: