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;
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. |
XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace | XmlTextReader.GetAttribute Overload List