ApplicationManager::GetApplicationManager Method ()
Returns the single instance of the ApplicationManager object associated with this ASP.NET host process.
Assembly: System.Web (in System.Web.dll)
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.
Available since 2.0