| title | IHttpApplication Interface |
|---|---|
| description | Learn how the IHttpApplication interface retrieves application-specific configuration information. |
| ms.date | 10/07/2016 |
| ms.assetid | faa76e4c-9d1e-ad2c-185f-52ec4aab7c5f |
Retrieves application-specific configuration information.
class IHttpApplication The following table lists the methods exposed by the IHttpApplication interface.
| Name | Description |
|---|---|
| GetAppConfigPath | Retrieves the application configuration path. |
| GetApplicationId | Retrieves the identifying application path for the current request. |
| GetApplicationPhysicalPath | Retrieves the physical path of the application for the current request. |
| GetModuleContextContainer | Returns the module context container for the application. |
| Name | Description |
|---|---|
| IGlobalApplicationPreloadProvider2 | Provides information about whether an application’s worker process is recycled. |
HTTP modules can use the IHttpApplication interface to retrieve configuration information for an application. Specifically, the GetAppConfigPath method returns the configuration path for an application, the GetApplicationId method returns the unique identity path for an application, and the GetApplicationPhysicalPath method returns the physical path for the root folder of an application.
HTTP modules can retrieve an IHttpApplication interface by using the IGlobalThreadCleanupProvider::GetApplication, IHttpApplicationProvider::GetApplication, and IHttpContext::GetApplication methods.
| Type | Description |
|---|---|
| Client | - IIS 7.0 on [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Httpserv.h |
Web Server Core Interfaces
IGlobalThreadCleanupProvider::GetApplication
IHttpApplicationProvider::GetApplication Method
IHttpContext::GetApplication Method