XdmReader.GetAttribute Method (int)XdmReader.GetAttribute Method (Integer)XdmReader::GetAttribute Method (int)

Gets the value of the attribute with the specified index.

Syntax

Public Overrides Function GetAttribute( _
    i As Integer _
) As String
public override string GetAttribute(
    int i
)
public:
virtual String^ GetAttribute(
    int i
) override
 

Parameters

i

Type: System.Int32System.Int32System::Int32

The index of the attribute. The index is zero-based. (The first attribute has index 0.)

Return Value

Type: System.StringSystem.StringSystem::String^

The value of the specified attribute. This method does not move the reader.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException i is out of range. It must be non-negative and less than the size of the attribute collection.