This documentation is archived and is not being maintained.

XPathNavigator.IsSamePosition Method

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
public abstract boolean IsSamePosition (
	XPathNavigator other
public abstract function IsSamePosition (
	other : XPathNavigator
) : boolean



The XPathNavigator to compare to this XPathNavigator.

Return Value

Returns 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:

  • The XPathNavigator specified shares the same implementation but points at a different document instance than the current XPathNavigator.

  • The XPathNavigator has a different implementation than the current XPathNavigator.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0