System.Xml.XmlReader.MoveToFirstAttribute Method

When overridden in a derived class, moves to the first attribute.

Syntax

public abstract bool MoveToFirstAttribute ()

Returns

true if an attribute exists (the reader moves to the first attribute); otherwise, false (the position of the reader does not change).

Remarks

Operation
If XmlReader.AttributeCount is non-zero, the position of the reader moves to the first attribute; otherwise, the position of the reader does not change.

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