ConfigurationRedirectionSection 类

配置 ApplicationHost.config 和 Administration.config 文件的位置。

语法

class ConfigurationRedirectionSection : ConfigurationSection  

方法

下表列出了 ConfigurationRedirectionSection 类公开的方法。

名称 描述
GetAllowDefinition (继承自 ConfigurationSection。)
GetAllowLocation (从 ConfigurationSection 继承。)
RevertToParent (从 ConfigurationSection 继承。)
SetAllowDefinition (从 ConfigurationSection 继承。)
SetAllowLocation (从 ConfigurationSection 继承。)

属性

下表列出了 ConfigurationRedirectionSection 类公开的属性。

名称 描述
Enabled 一个读/写 boolean 值。 如果 ApplicationHost.config 和 Administration.config 文件的位置重定向到 RedirectionPath 属性指定的位置,则为 true;否则为 false.。默认值为 false
Location (继承自 ConfigurationSection。)一个键属性。
Password 一个区分大小写的读/写加密 string 值,该值指定配置系统在读取 RedirectionPath 属性指定位置的配置文件时模拟的标识的密码。 默认值为“[enc:RsaProtectedConfigurationProvider::enc]”。
Path (继承自 ConfigurationSection。)一个键属性。
RedirectionPath 一个读/写 string 值,该值指定重定向的 ApplicationHost.config 和 Administration.config 文件的位置路径(例如 UNC 共享)。 默认值为空字符串("")。
SectionInformation (从 ConfigurationSection 继承。)
UserName 一个读/写 string 值,该值指定配置系统在读取 RedirectionPath 属性指定位置的配置文件时模拟的标识的用户名。 默认值为空字符串("")。

子类

此类不包含子类。

注解

配置重定向设置存储在 Redirection.config 文件中。 默认情况下,此文件位于 %windir%\system32\inetsrv\config 目录中

继承层次结构

ConfigurationSection

ConfigurationRedirectionSection

要求

类型 描述
客户端 - 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

另请参阅

ConfigurationSection 类