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

System.Xml.XmlTextReader.MoveToAttribute Method

Moves the position of the current instance to the attribute with the specified local name and namespace URI.

public override bool MoveToAttribute (string localName, string namespaceName)

Parameters

localName
A string specifying the local name of the attribute.
namespaceName
Documentation for this section has not yet been entered.

Returns

A bool where true indicates the attribute was found. If localname is null, or the attribute was not found, false is returned and the position of the reader does not change.

Remarks

If namespaceURI is null, the local namespace is searched for localName.

After calling this method, the XmlTextReader.Name, XmlTextReader.NamespaceURI, and XmlTextReader.Prefix properties reflect the properties of the new attribute.

Note:

This method overrides XmlReader.MoveToAttribute(string).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0