Compartilhar via


Dispose Method

The Dispose method of the WebPart class releases all resources used by the Web Part.

Remarks

Override the Dispose method when you want to explicitly free memory for your Web Part and its associated system resources (if any). Use this method if it is necessary to explicitly clean up instead of waiting for the garbage collector to call the Web Part infrastructure's destructor.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security