System.Xml.XPath.XPathNavigator.MoveTo Method

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the same position as the specified System.Xml.XPath.XPathNavigator.

Syntax

public abstract bool MoveTo (XPathNavigator other)

Parameters

other
The System.Xml.XPath.XPathNavigator positioned on the node that you want to move to.

Returns

Returns true if the System.Xml.XPath.XPathNavigator is successful moving to the same position as the specified System.Xml.XPath.XPathNavigator; otherwise, false. If false, the position of the System.Xml.XPath.XPathNavigator is unchanged.

Remarks

This method always returns true if the System.Xml.XPath.XPathNavigator specified is an System.Xml.XPath.XPathNavigator that shares the same implementation and points at the same document instance as the current System.Xml.XPath.XPathNavigator.

This method always returns false if the System.Xml.XPath.XPathNavigator specified is an System.Xml.XPath.XPathNavigator that has a different implementation than the current System.Xml.XPath.XPathNavigator.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0