1 out of 1 rated this helpful - Rate this topic

ApplicationManager Class

Manages ASP.NET application domains for an ASP.NET hosting application.

System.Object
  System.MarshalByRefObject
    System.Web.Hosting.ApplicationManager

Namespace:  System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)
public sealed class ApplicationManager : MarshalByRefObject

The ApplicationManager type exposes the following members.

  Name Description
Public method Close Shuts down all application domains.
Public method CreateObject(IApplicationHost, Type) Creates an object for the specified application domain, based on type.
Public method CreateObject(String, Type, String, String, Boolean) Creates an object for the specified application domain based on type, virtual and physical paths, and a Boolean value indicating failure behavior when an object of the specified type already exists.
Public method CreateObject(String, Type, String, String, Boolean, Boolean) Creates an object for the specified application domain based on type, virtual and physical paths, a Boolean value indicating failure behavior when an object of the specified type already exists, and a Boolean value indicating whether hosting initialization error exceptions are thrown.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAppDomain(IApplicationHost) Gets the application domain of an application using the specified host.
Public method GetAppDomain(String) Gets the application domain of the specified application.
Public method Static member GetApplicationManager Returns the single instance of the ApplicationManager object associated with this ASP.NET host process.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetObject Returns the registered object of the specified type from the specified application.
Public method GetRunningApplications Returns a snapshot of running applications.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Gives the application domain an infinite lifetime by preventing a lease from being created. (Overrides MarshalByRefObject.InitializeLifetimeService().)
Public method IsIdle Returns a value indicating whether all applications hosted by the process are idle and not processing requests.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method Open Makes a thread-safe increment to the user reference count of the application manager instance.
Public method ShutdownAll Unloads all application resources.
Public method ShutdownApplication Unloads the specified application.
Public method StopObject 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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

The ApplicationManager object provides lifetime management of objects in the hosting environment for an ASP.NET application. It is responsible for:

  • Activating and initializing ASP.NET applications.

  • Managing the application lifetime and the lifetime of objects registered in the application.

  • Exposing objects used by the hosting environment to process ASP.NET application requests.

  • Providing a list of applications running in the hosting process at any given moment.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ