NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNavigator.MoveTo

Moves to the same position as the specified XmlNavigator.

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

Parameters

other
XmlNavigator with the position you want to move this XmlNavigator to.

Return Value

Throws an exception if the two XmlNavigator objects are incompatible.

Remarks

The XmlNavigator is in the 'null' state when it temporarily points to no node. You can get out of this state by using MoveTo(XmlNavigator) or MoveToDocument. You can find out that you are in the Null state because NodeType returns 0.

See Also

XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace