共用方式為


IAppHostConfigFile 介面

表示 IIS 7 組態系統中的組態檔。

Syntax

interface IAppHostConfigFile: IUnknown  

方法

下表列出 介面所 IAppHostConfigFile 公開的方法。

方法 描述
ClearInvalidSections 從組態檔中移除不正確組態區段。
GetAdminSection 取得指定組態區段和組態路徑的組態區段。
GetMetadata 從 IIS 7 組態系統取得中繼資料。
SetMetadata 設定 IIS 7 組態檔中的中繼資料。

屬性

下表列出 介面所 IAppHostConfigFile 公開的屬性。

屬性 描述
ConfigPath 取得這個 IAppHostConfigFile 介面所表示之組態檔的組態系統路徑。
FilePath 取得這個 IAppHostConfigFile 介面所表示之組態檔的檔案系統路徑。
位置 傳回 IAppHostConfigLocation 介面的集合,這些介面代表為目前組態檔定義的位置標記。
RootSectionGroup 傳回目前組態檔的根組態區段群組。

繼承階層架構

IUnknown

IAppHostConfigFile

規格需求

類型 描述
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
標頭 Ahadmin.h

另請參閱

應用程式主機管理介面
IAppHostConfigManager 介面