Moves to the attribute with the specified name and namespace.
[Visual Basic] Overloads MustOverride Public Function MoveToAttribute( _ ByVal name As String, _ ByVal ns As String _ ) As Boolean [C#] public abstract bool MoveToAttribute( string name, string ns ); [C++] public: virtual bool MoveToAttribute( String* name, String* ns ) = 0; [JScript] public abstract function MoveToAttribute( name : String, ns : 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 and namespaceURI properties cannot be found in the current node. |
XmlReader Class | XmlReader Members | System.NewXml Namespace | XmlReader.MoveToAttribute Overload List