Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
[SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)]
void StopObject(
	String^ appId,
	Type^ 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: