This documentation is archived and is not being maintained.

FormsAuthenticationModule.Dispose Method

Disposes of the module derived from IHttpModule when called by the HttpRuntime .

[Visual Basic]
Public Overridable Sub Dispose() Implements IHttpModule.Dispose
public virtual void Dispose();
public: virtual void Dispose();
public function Dispose();




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

Note   Always call Dispose before you release your last reference to the FormsAuthenticationModule. Otherwise, the resources the FormsAuthenticationModule is using will not be freed until garbage collection calls the FormsAuthenticationModule object's destructor.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

FormsAuthenticationModule Class | FormsAuthenticationModule Members | System.Web.Security Namespace