TechNet
Export (0) Print
Expand All

ApplicationManager Class

 

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

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

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

public sealed class ApplicationManager : MarshalByRefObject

NameDescription
System_CAPS_pubmethodClose()

Shuts down all application domains.

System_CAPS_pubmethodCreateObject(IApplicationHost, Type)

Creates an object for the specified application domain, based on type.

System_CAPS_pubmethodCreateObject(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.

System_CAPS_pubmethodCreateObject(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.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetAppDomain(IApplicationHost)

Gets the application domain of an application using the specified host.

System_CAPS_pubmethodGetAppDomain(String)

Gets the application domain of the specified application.

System_CAPS_pubmethodSystem_CAPS_staticGetApplicationManager()

Returns the single instance of the ApplicationManager object associated with this ASP.NET host process.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetObject(String, Type)

Returns the registered object of the specified type from the specified application.

System_CAPS_pubmethodGetRunningApplications()

Returns a snapshot of running applications.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Gives the application domain an infinite lifetime by preventing a lease from being created.(Overrides MarshalByRefObject.InitializeLifetimeService().)

System_CAPS_pubmethodIsIdle()

Returns a value indicating whether all applications hosted by the process are idle and not processing requests.

System_CAPS_pubmethodOpen()

Makes a thread-safe increment to the user reference count of the application manager instance.

System_CAPS_pubmethodShutdownAll()

Unloads all application resources.

System_CAPS_pubmethodShutdownApplication(String)

Unloads the specified application.

System_CAPS_pubmethodStopObject(String, Type)

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.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft