Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.MoveToFirstAttribute Method

Moves the position of the current instance to the first attribute associated with the current node.

public abstract bool MoveToFirstAttribute ()

Returns

A bool where true indicates the current node contains at least one attribute; otherwise, false.

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