表示 IAppHostElement 接口的集合。
语法
interface IAppHostElementCollection : IUnknown
方法
下表列出了 接口公开 IAppHostElementCollection 的方法。
| 方法 | 说明 |
|---|---|
| AddElement | 将元素添加到当前集合。 |
| Clear | 从当前集合中删除所有元素。 |
| CreateNewElement | 创建一个新元素。 |
| DeleteElement | 从集合中删除请求的元素 |
属性
下表列出了 接口公开 IAppHostElementCollection 的属性。
| 属性 | 说明 |
|---|---|
| Count | 返回当前集合中的元素数 |
| Item | 获取当前集合中请求索引处的元素。 |
| 架构 | 返回分配给当前集合的架构 |
继承层次结构
IAppHostElementCollection
要求
| 类型 | 说明 |
|---|---|
| 客户端 | - 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 |