NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlReader.MoveToAttribute (String)

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;

Parameters

name
The name of the attribute. The name can include the prefix or leave it off.

Return Value

true if the attribute is found; otherwise, false. If false, the reader's position does not change.

Exceptions

Exception Type Condition
ArgumentException The attribute specified by name cannot be found in the current node.

See Also

XmlReader Class | XmlReader Members | System.NewXml Namespace | XmlReader.MoveToAttribute Overload List