This documentation is archived and is not being maintained.

ApplicationManager::GetApplicationManager Method

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

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

public:
static ApplicationManager^ GetApplicationManager()

Return Value

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

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

The following code example uses the GetApplicationManager method to retrieve the ApplicationManager instance for a Web application.

No code example is currently available or this language may not be supported.

.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.
Show: