System.Xml.XmlReader.MoveToAttribute Method

When overridden in a derived class, moves to the attribute with the specified index.

Syntax

public virtual void MoveToAttribute (int i)

Parameters

i
The index 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
After calling this method, the XmlReader.Name, XmlReader.NamespaceURI, and XmlReader.Prefix properties reflect the properties of current attribute.

Note to Inheritors
This method 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