System.Web.Hosting.HostingEnvironment.RegisterObject Method

Places an object in the list of registered objects for the application.

Syntax

public static void RegisterObject (IRegisteredObject obj)

Parameters

obj
The object to register.

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.RegisterObject(IRegisteredObject) method is used to register previously created objects with the hosting environment. Objects registered with the HostingEnvironment.RegisterObject(IRegisteredObject) method must implement the System.Web.Hosting.IRegisteredObject interface.

To use a registered object, follow these steps:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

Requirements

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