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

Gets the value of the attribute with the specified name.

[Visual Basic]
Overloads MustOverride Public Function GetAttribute( _
   ByVal name As String _
) As String
[C#]
public abstract string GetAttribute(
   string name
);
[C++]
public: virtual String* GetAttribute(
   String* name
) = 0;
[JScript]
public abstract 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

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