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

System.Xml.XmlReader.GetAttribute Method

Returns the value of the attribute with the specified local name and namespace URI. [Edit]

public abstract string GetAttribute (string localName, string namespaceName)

Parameters

localName
Documentation for this section has not yet been entered. [Edit]
namespaceName
Documentation for this section has not yet been entered. [Edit]

Returns

A string containing the value of the specified attribute, or null if the attribute is not found. [Edit]

Remarks

Operation
This method does not move the reader.

Note to Inheritors
This method must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Example

For an example demonstrating this method, see XmlTextReader.GetAttribute(int)(string, string).

Requirements

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