System.Xml.XmlElement.GetAttribute Method

Returns the value for the attribute with the specified name.

Syntax

public virtual string GetAttribute (string name)

Parameters

name
The name of the attribute to retrieve. This is a qualified name. It is matched against the Name property of the matching node.

Returns

The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value.

Remarks

Documentation for this section has not yet been entered.

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