XPathNavigator.IsSamePosition(XPathNavigator) Method

Definition

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

public:
 abstract bool IsSamePosition(System::Xml::XPath::XPathNavigator ^ other);
public abstract bool IsSamePosition (System.Xml.XPath.XPathNavigator other);
abstract member IsSamePosition : System.Xml.XPath.XPathNavigator -> bool
Public MustOverride Function IsSamePosition (other As XPathNavigator) As Boolean

Parameters

other
XPathNavigator

The XPathNavigator to compare to this XPathNavigator.

Returns

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

Remarks

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:

Applies to

See also