System.Xml.XmlReader.Item Property
Retrieves the value of the attribute with the specified index relative to the containing element.

Syntax

This is the default property for this class.

public virtual string this [int i] { get; }

Parameters

i
A int specifying the zero-based index of the attribute relative to the containing element.

Value

A string containing the value of the attribute.

Exceptions

TypeReason
ArgumentOutOfRangeException i is less than 0 or greater than or equal to the XmlReader.AttributeCount of the containing element.

Remarks

Operation
This property does not move the reader.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0