This documentation is archived and is not being maintained.

UrlAuthorizationModule.Dispose Method

Called by the HTTP runtime to dispose of the module.

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

Implements

IHttpModule.Dispose

Remarks

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

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

Requirements

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

See Also

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

Show: