System.Web.UI.AttributeCollection.Remove Method

Removes an attribute from a server control's System.Web.UI.AttributeCollection object.

Syntax

public void Remove (string key)

Parameters

key
The name of the attribute to remove.

Remarks

If the System.Web.UI.AttributeCollection object does not contain an attribute that has the specified key, the collection remains unchanged. No exception is thrown.

Requirements

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