IHttpApplication 介面
擷取應用程式特定的組態資訊。
Syntax
class IHttpApplication
方法
下表列出 介面所 IHttpApplication
公開的方法。
名稱 | 描述 |
---|---|
GetAppConfigPath | 擷取應用程式組態路徑。 |
GetApplicationId | 擷取目前要求的識別應用程式路徑。 |
GetApplicationPhysicalPath | 擷取目前要求之應用程式的實體路徑。 |
GetModuleCoNtextContainer | 傳回應用程式的模組內容容器。 |
衍生類別
名稱 | 描述 |
---|---|
IGlobalApplicationPreloadProvider2 | 提供應用程式的背景工作進程是否回收的相關資訊。 |
備註
HTTP 模組可以使用 IHttpApplication
介面來擷取應用程式的組態資訊。 具體而言,方法 GetAppConfigPath
會傳回應用程式的組態路徑、 GetApplicationId
方法會傳回應用程式的唯一識別路徑,而 GetApplicationPhysicalPath
方法會傳回應用程式的根資料夾實體路徑。
HTTP 模組可以使用 IHttpApplication
IGlobalThreadCleanupProvider::GetApplication、 IHttpApplicationProvider::GetApplication和 IHttpCoNtext::GetApplication 方法擷取介面。
規格需求
類型 | 描述 |
---|---|
Client | - Windows Vista 上的 IIS 7.0 - Windows 7 上的 IIS 7.5 - Windows 8 上的 IIS 8.0 - Windows 10上的 IIS 10.0 |
伺服器 | - Windows Server 2008 上的 IIS 7.0 - Windows Server 2008 R2 上的 IIS 7.5 - Windows Server 2012 上的 IIS 8.0 - Windows Server 2012 R2 上的 IIS 8.5 - Windows Server 2016上的 IIS 10.0 |
產品 | - 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 |
標頭 | Httpserv.h |
另請參閱
Web Server Core 介面
IGlobalThreadCleanupProvider::GetApplication
IHttpApplicationProvider::GetApplication 方法
IHttpCoNtext::GetApplication 方法