XPathNavigator.IsSamePosition(XPathNavigator) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
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.