System.Xml.XPath.XPathNavigator.IsSamePosition Method

When overridden in a derived class, determines whether the current System.Xml.XPath.XPathNavigator is at the same position as the specified System.Xml.XPath.XPathNavigator.

Syntax

public abstract bool IsSamePosition (XPathNavigator other)

Parameters

other
The System.Xml.XPath.XPathNavigator to compare to this System.Xml.XPath.XPathNavigator.

Returns

true if the two System.Xml.XPath.XPathNavigator objects have the same position; otherwise, false.

Remarks

The XPathNavigator.IsSamePosition(XPathNavigator) method assumes that the System.Xml.XPath.XPathNavigator specified shares the same implementation and is points at the same document instance as the current System.Xml.XPath.XPathNavigator.

This method always returns false under the following conditions:

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