ApplicationManager.ShutdownApplication Method (String)
.NET Framework (current version)
Unloads the specified application.
Assembly: System.Web (in System.Web.dll)
[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)] public void ShutdownApplication( string appId )
Parameters
- appId
-
Type:
System.String
The unique identifier of the application to unload.
| Exception | Condition |
|---|---|
| ArgumentNullException | appId is null. |
Calling the ShutdownApplication method is equivalent to calling the HostingEnvironment.InitiateShutdown method for a specific application domain; however, the ShutdownApplication method can be called from outside managed application domains.
.NET Framework
Available since 2.0
Available since 2.0
Show: