This documentation is archived and is not being maintained.
HttpRuntime.UnloadAppDomain Method
.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Terminates the current application. The application restarts the next time a request is received for it.
[Visual Basic] Public Shared Sub UnloadAppDomain() [C#] public static void UnloadAppDomain(); [C++] public: static void UnloadAppDomain(); [JScript] public static function 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
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- SecurityPermission for the ability to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
See Also
HttpRuntime Class | HttpRuntime Members | System.Web Namespace
Show: