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!

XmlTextReader.MoveToAttribute (String, String)

Moves to the attribute with the specified name and namespace.

[Visual Basic]
Overloads Overrides Public Function MoveToAttribute( _
   ByVal name As String, _
   ByVal namespaceURI As String _
) As Boolean
[C#]
public override bool MoveToAttribute(
   string name,
   string namespaceURI
);
[C++]
public: override bool MoveToAttribute(
   String* name,
   String* namespaceURI
);
[JScript]
public override function MoveToAttribute(
   name : String,
   namespaceURI : String
) : Boolean;

Parameters

name
The name of the attribute.
namespaceURI
[To be supplied.]

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 and namespaceURI properties cannot be found in the current node.

See Also

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