Share via


XmlReader.GetAttribute Method (String)

Gets the value of the attribute with the specified Name.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

public virtual abstract string GetAttribute (
         stringname
)

Parameters

  • name
    The qualified name of the attribute.

Return Value

The value of the specified attribute. If the attribute is not found, a null reference is returned.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace