AttributeCollection.Remove Method (String)

 

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

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

member Remove : 
        key:string -> unit

Parameters

key
Type: System.String

The name of the attribute to remove.

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

The following example shows how to programmatically remove an attribute from an HTML server control's AttributeCollection object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: