Export (0) Print
Expand All

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.

  NameDescription
Public methodCloseShuts down all application domains.
Public methodCreateObject(IApplicationHost, Type)Creates an object for the specified application domain, based on type.
Public methodCreateObject(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 methodCreateObject(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 methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetAppDomain(IApplicationHost)Gets the application domain of an application using the specified host.
Public methodGetAppDomain(String)Gets the application domain of the specified application.
Public methodStatic memberGetApplicationManagerReturns the single instance of the ApplicationManager object associated with this ASP.NET host process.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetObjectReturns the registered object of the specified type from the specified application.
Public methodGetRunningApplicationsReturns a snapshot of running applications.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceGives the application domain an infinite lifetime by preventing a lease from being created. (Overrides MarshalByRefObject.InitializeLifetimeService().)
Public methodIsIdleReturns a value indicating whether all applications hosted by the process are idle and not processing requests.
Public methodOpenMakes a thread-safe increment to the user reference count of the application manager instance.
Public methodShutdownAllUnloads all application resources.
Public methodShutdownApplicationUnloads the specified application.
Public methodStopObjectRemoves 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 methodToStringReturns 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.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft