System.Web.Hosting.ApplicationManager.ShutdownApplication Method

Unloads the specified application.

Syntax

public void ShutdownApplication (string appId)

Parameters

appId
The unique identifier of the application to unload.

Remarks

Calling the ApplicationManager.ShutdownApplication(string) method is equivalent to calling the HostingEnvironment.InitiateShutdown method for a specific application domain; however, the ApplicationManager.ShutdownApplication(string) method can be called from outside managed application domains.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0