Share via


XmlReader.GetAttribute Method (Int32)

Gets the value of the attribute with the specified index.

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

Syntax

public virtual abstract string GetAttribute (
         inti
)

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.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace