IAppHostElement 接口

表示 IIS 7 配置系统中的单个元素。

语法

interface IAppHostElement : IUnknown  

方法

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

方法 说明
Clear 从配置系统中删除所有元素。
GetElementByName 从当前元素获取请求的子元素。
GetMetadata 从当前元素获取元数据值。
GetPropertyByName IAppHostElement::P roperties 集合中获取请求的属性。
SetMetadata 设置当前元素的元数据。

属性

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

属性 说明
ChildElements 表示嵌套在当前 IAppHostElement 接口下的子元素的集合。
集合 表示属于集合的元素的集合。
名称 获取当前元素的名称。
属性 获取为当前元素定义的属性的集合。
架构 获取分配给当前元素的架构。

继承层次结构

IUnknown

IAppHostElement

要求

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

另请参阅

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