System.Xml.XPath.XPathNavigator.Matches Method

Determines whether the current node matches the specified XPath expression.

Syntax

public virtual bool Matches (string xpath)

Parameters

xpath
The XPath expression.

Returns

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

Remarks

This method has no affect on the state of the System.Xml.XPath.XPathNavigator.

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