System.Xml.XmlReader.MoveToAttribute Method

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

Syntax

public abstract bool MoveToAttribute (string name)

Parameters

name
The qualified name of the attribute.

Returns

true if the attribute is found; otherwise, false. If false, the reader's position does not change.

Remarks

After calling MoveToAttribute, the XmlReader.Name, XmlReader.NamespaceURI, and XmlReader.Prefix properties reflect the properties of that attribute.

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