Moves to the attribute with the specified name.
[Visual Basic] Overloads MustOverride Public Function MoveToAttribute( _ ByVal name As String _ ) As Boolean [C#] public abstract bool MoveToAttribute( string name ); [C++] public: virtual bool MoveToAttribute( String* name ) = 0; [JScript] public abstract function MoveToAttribute( name : String ) : Boolean;
true if the attribute is found; otherwise, false. If false, the XmlNavigator's position does not change.
Exception Type | Condition |
---|---|
ArgumentException | The attribute specified by name cannot be found in the current node. |
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