Moves to the attribute with the specified index.
[Visual Basic] Overloads MustOverride Public Function MoveToAttribute( _ ByVal i As Integer _ ) As Boolean [C#] public abstract bool MoveToAttribute( int i ); [C++] public: virtual bool MoveToAttribute( int i ) = 0; [JScript] public abstract function MoveToAttribute( i : int ) : Boolean;
true if the attribute is found; otherwise, false. If false, the reader's position does not change.
Exception Type | Condition |
---|---|
IndexOutOfRangeException | The i parameter is less than 0 or greater than AttributeCount. |
If you are positioned on an attribute, this method will do an implicit MoveToElement before processing this method.
XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace | XmlNavigator.MoveToAttribute Overload List