充当其配置可在配置节中指定的命名空间对象的基类型。
语法
class ConfiguredObject : Object
方法
下表列出了 ConfiguredObject 类公开的方法。
| 名称 | 描述 |
|---|---|
| GetAllSections | 检索已配置对象下的所有配置节。 |
| GetSection | 检索已配置对象的配置节的内容。 |
属性
此类不包含任何属性。
子类
下表列出了 ConfiguredObject 类公开的子类。
| 名称 | 描述 |
|---|---|
| 应用程序 | 表示 IIS Web 应用程序。 |
| 站点 | 表示 IIS 网站。 |
| VirtualDirectory | 表示 IIS 虚拟目录。 |
继承层次结构
ConfiguredObject
要求
| 类型 | 描述 |
|---|---|
| 客户端 | - IIS 7.0(在 Windows Vista 上) - IIS 7.5(在 Windows 7 上) - IIS 8.0(在 Windows 8 上) - IIS 10.0(在 Windows 10 上) |
| 服务器 | - IIS 7.0(在 Windows Server 2008 上) - IIS 7.5(在 Windows Server 2008 R2 上) - IIS 8.0(在 Windows Server 2012 上) - IIS 8.5(在 Windows Server 2012 R2 上) - IIS 10.0(在 Windows Server 2016 上) |
| 产品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
| MOF 文件 | WebAdministration.mof |