System.Web.HttpRuntime.UnloadAppDomain Method

Terminates the current application. The application restarts the next time a request is received for it.

Syntax

public static void UnloadAppDomain ()

Remarks

UnloadAppDomain is useful for servers that have a large number of applications that infrequently receive requests. Rather than keep application resources alive for the lifetime of the process, UnloadAppDomain allows programmatic shutdown of unused applications.

Requirements

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