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.