XPathNavigator.IsSamePosition Method (XPathNavigator)


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

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

public abstract bool IsSamePosition(
	XPathNavigator other


Type: System.Xml.XPath.XPathNavigator

The XPathNavigator to compare to this XPathNavigator.

Return Value

Type: System.Boolean

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

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

This method always returns false under the following conditions:

.NET Framework
Available since 1.1
Available since 4.0
Return to top