Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpRuntime.UnloadAppDomain Method

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

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public Shared Sub UnloadAppDomain

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft