Share via


GetAttribute Method (Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, gets the value of the attribute with the specified index.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

Syntax

'Declaration
Public Overridable Function GetAttribute ( _
    i As Integer _
) As String
public virtual string GetAttribute(
    int i
)
public:
virtual String^ GetAttribute(
    int i
)
abstract GetAttribute : 
        i:int -> string 
override GetAttribute : 
        i:int -> string 
public function GetAttribute(
    i : int
) : String

Parameters

  • i
    Type: System. . :: . .Int32
    The index of the attribute. The index is zero-based. (The first attribute has index 0.)

Return Value

Type: System. . :: . .String
The value of the specified attribute. This method does not move the reader.

.NET Framework Security

See Also

Reference

XmlReader Class

GetAttribute Overload

System.Xml Namespace