System.Xml.XmlElement.HasAttribute Method

Determines whether the current node has an attribute with the specified name.

Syntax

public virtual bool HasAttribute (string name)

Parameters

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

Returns

true if the current node has the specified attribute; otherwise, false.

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