Export (0) Print
Expand All

XPathNavigator.IsSamePosition Method

Determines whether the current XPathNavigator is at the same position as the specified XPathNavigator.

[Visual Basic]
Public MustOverride Function IsSamePosition( _
   ByVal other As XPathNavigator _
) As Boolean
[C#]
public abstract bool IsSamePosition(
 XPathNavigator other
);
[C++]
public: virtual bool IsSamePosition(
 XPathNavigator* other
) = 0;
[JScript]
public abstract function IsSamePosition(
   other : XPathNavigator
) : Boolean;

Parameters

other
The XPathNavigator that you want to compare against.

Return Value

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

Remarks

This method assumes that other is an XPathNavigator that shares the same implementation and is pointing at the same document instance as the current navigator.

This method always returns false under the following conditions:

  • other is an XPathNavigator that shares the same implementation but is pointing at a different document instance than the current navigator.
  • other is an XPathNavigator that has a different implementation than the current navigator.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XPathNavigator Class | XPathNavigator Members | System.Xml.XPath Namespace | ComparePosition

Show:
© 2014 Microsoft