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.GetAttribute (String)

Gets the value of the attribute with the specified name.

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

Parameters

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

Return Value

The value of the specified attribute. If the attribute is not found, null is returned.

Exceptions

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

See Also

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