Mono Class Library: System.Xml.XPath.XPathNavigator Overview | Members

System.Xml.XPath.XPathNavigator.IsSamePosition Method

Evaluates if the current node of the argument XPathNavigator is positioned as the same as the current node of this instance.

public abstract bool IsSamePosition (XPathNavigator other)

Parameters

other
An stem.Xml.XPath.XPathNavigator that is being compared the current node's position.

Returns

True if the current node was the same position; Otherwise False.

Remarks

This method only works when both of the XPathNavigators were created from the same System.Xml.XPath.IXPathNavigable instance. It won't work for example when one was created from System.Xml.XmlDocument and the other was created from System.Xml.XPath.XPathDocument even if they positions the same node.

Requirements

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