When overridden in a derived class, gets the value of the attribute with the specified index.
[Visual Basic]
Overloads Public MustOverride Function GetAttribute( _
ByVal i As Integer _
) As String
[C#]
public abstract string GetAttribute(
int i
);
[C++]
public: virtual String* GetAttribute(
int i
) = 0;
[JScript]
public abstract function GetAttribute(
i : int
) : String;
Parameters
- i
- The index of the attribute. The index is zero-based. (The first attribute has index 0.)
Return Value
The value of the specified attribute. This method does not move the reader.
Example
See GetAttribute (in the XmlTextReader class) for an example using this method.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
XmlReader Class | XmlReader Members | System.Xml Namespace | XmlReader.GetAttribute Overload List