System.Web.Hosting.ApplicationManager.GetApplicationManager Method

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

Syntax

public static ApplicationManager GetApplicationManager ()

Returns

The single instance of the System.Web.Hosting.ApplicationManager object associated with the ASP.NET host process that is running.

Remarks

Only one instance of the System.Web.Hosting.ApplicationManager object is created by an ASP.NET host process in the default application domain. If an instance of the System.Web.Hosting.ApplicationManager class is not available, the ApplicationManager.GetApplicationManager method first creates an instance of the System.Web.Hosting.ApplicationManager class and then returns the newly created object. If an instance of the System.Web.Hosting.ApplicationManager class was previously created, the ApplicationManager.GetApplicationManager method returns the existing object.

Requirements

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