IAppHostConfigLocationCollection 接口

提供对 IIS 7 配置系统中配置位置集合的访问。

语法

interface IAppHostConfigLocationCollection : IUnknown  

方法

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

方法 说明
AddLocation 将新的配置位置添加到集合。
DeleteLocation 从集合中删除配置位置。

属性

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

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

继承层次结构

IUnknown

IAppHostConfigLocationCollection

要求

类型 说明
客户端 - 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

另请参阅

应用程序主机管理接口
应用程序主机管理 API 参考