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.MoveToElement

Moves to the element that contains the current attribute node.

[Visual Basic]
MustOverride Public Function MoveToElement() As Boolean
[C#]
public abstract bool MoveToElement();
[C++]
public: virtual bool MoveToElement() = 0;
[JScript]
public abstract function MoveToElement() : Boolean;

Return Value

true if the attribute is owned by an element; false if the attribute you are positioned on has been removed from the owning element.

Exceptions

Exception Type Condition
InvalidOperationException The reader is not positioned on an attribute node.

Remarks

Use this method to return to an element after navigating through its attributes.

See Also

XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace