This documentation is archived and is not being maintained.

PassportAuthenticationModule.Dispose Method

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

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

public void Dispose ()
public final void Dispose ()
public final function Dispose ()
Not applicable.

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


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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0