IAppHostSectionDefinitionCollection 接口

表示配置节定义的集合。

语法

interface IAppHostSectionDefinitionCollection : IUnknown  

方法

下表列出了 接口公开 IAppHostSectionDefinitionCollection 的方法。

方法 说明
AddSection 将新的配置节定义添加到集合。
DeleteSection 从集合中删除配置节定义

属性

下表列出了 接口公开 IAppHostSectionDefinitionCollection 的属性。

属性 说明
Count 获取当前集合中的配置节定义数。
Item 从当前集合中获取请求索引处的配置节定义。

继承层次结构

IUnknown

IAppHostSectionDefinitionCollection

要求

类型 说明
客户端 - 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
Header Ahadmin.h

另请参阅

应用程序主机管理接口
IAppHostPropertyCollection 接口