Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
HttpRuntime Class
 UnloadAppDomain Method
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
HttpRuntime..::.UnloadAppDomain Method

Updated: November 2007

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)

Visual Basic (Declaration)
<SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted := True)> _
Public Shared Sub UnloadAppDomain
Visual Basic (Usage)
HttpRuntime.UnloadAppDomain()
C#
[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
public static void UnloadAppDomain()
Visual C++
[SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)]
public:
static void UnloadAppDomain()
J#
/** @attribute SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true) */
public static void UnloadAppDomain()
JScript
public static function 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.

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker