ApplicationManager.StopObject Method (String, Type)

 

Removes the specified object from the list of registered objects in an application. If the object to be removed is the last remaining object in the list of registered objects in an application, the application is unloaded.

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

<SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted := True)>
Public Sub StopObject (
	appId As String,
	type As Type
)

Parameters

appId
Type: System.String

The unique identifier for the application that owns the object.

type
Type: System.Type

The type of the object to unload.

Exception Condition
ArgumentNullException

appId is null.

- or -

type is null.

.NET Framework
Available since 2.0
Return to top
Show: