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;
The value of the specified attribute. If the attribute is not found, null is returned.
Exception Type | Condition |
---|---|
ArgumentException | The attribute specified by name cannot be found in the current node. |
XmlReader Class | XmlReader Members | System.NewXml Namespace | XmlReader.GetAttribute Overload List