System.Web.UI.Control.Dispose Method

Enables a server control to perform final clean up before it is released from memory.

Syntax

public virtual void Dispose ()

Remarks

Call Control.Dispose when you are finished using the System.Web.UI.Control. The Control.Dispose method leaves the System.Web.UI.Control in an unusable state. After calling this method, you must release all references to the control so the memory it was occupying can be reclaimed by garbage collection.

Requirements

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