IHttpApplication Interface

 

Retrieves application-specific configuration information.

Syntax

class IHttpApplication  

Methods

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.

Derived Classes

Name Description
IGlobalApplicationPreloadProvider2 Provides information about whether an application’s worker process is recycled.

Remarks

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.

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- 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 Technical Preview
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- IIS Express 7.5, IIS Express 8.0, IIS Express 10.0
Header Httpserv.h

See Also

Web Server Core Interfaces
IGlobalThreadCleanupProvider::GetApplication
IHttpApplicationProvider::GetApplication Method
IHttpContext::GetApplication Method