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;
true if the attribute is owned by an element; false if the attribute you are positioned on has been removed from the owning element.
Exception Type | Condition |
---|---|
InvalidOperationException | The reader is not positioned on an attribute node. |
Use this method to return to an element after navigating through its attributes.
XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace