Moves to the attribute with the specified name.
[Visual Basic] Overloads Overrides Public Function MoveToAttribute( _ ByVal name As String _ ) As Boolean [C#] public override bool MoveToAttribute( string name ); [C++] public: override bool MoveToAttribute( String* name ); [JScript] public override function MoveToAttribute( name : String ) : Boolean;
true if the attribute is found; otherwise, false. If false, the reader's position does not change.
Exception Type | Condition |
---|---|
ArgumentException | The attribute specified by name cannot be found in the current node. |
XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace | XmlTextReader.MoveToAttribute Overload List