This topic has not yet been rated - Rate this topic

IHttpApplication Interface

IIS 7.0

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 Windows Vista

  • IIS 7.5 on Windows 7

  • IIS Express 7.5 on Windows XP, Windows Vista, Windows 7

  • IIS 8.0 on Windows 8 Client

Server

  • IIS 7.0 on Windows Server 2008

  • IIS 7.5 on Windows Server 2008 R2

  • IIS Express 7.5 on Windows Server 2003, Windows Server 2008, Windows Server 2008 R2

  • IIS 8.0 on Windows Server 2012

Product

IIS 7.0, IIS 7.5, IIS Express 7.5, IIS 8.0

Header

Httpserv.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.