System.Web.Hosting.HostingEnvironment.UnregisterObject Method

Removes an object from the list of registered objects for the application.

Syntax

public static void UnregisterObject (IRegisteredObject obj)

Parameters

obj
The object to remove.

Remarks

The System.Web.Hosting.ApplicationManager class enables methods outside the current application domain to create, manage, and destroy objects inside the current application domain. The HostingEnvironment.UnregisterObject(IRegisteredObject) method is used to remove previously registered objects from the hosting environment.

Requirements

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