ApplicationManager.ShutdownApplication Method (String)

 

Unloads the specified application.

Namespace:   System.Web.Hosting
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
Return to top
Show: