共用方式為


ConfigurationRedirectionSection 類別

設定ApplicationHost.config和Administration.config檔案的位置。

Syntax

class ConfigurationRedirectionSection : ConfigurationSection  

方法

下表列出 類別所 ConfigurationRedirectionSection 公開的方法。

名稱 描述
GetAllowDefinition (繼承自 ConfigurationSection.)
GetAllowLocation (繼承自 ConfigurationSection。)
RevertToParent (繼承自 ConfigurationSection。)
SetAllowDefinition (繼承自 ConfigurationSection。)
SetAllowLocation (繼承自 ConfigurationSection。)

屬性

下表列出 類別所 ConfigurationRedirectionSection 公開的屬性。

名稱 描述
Enabled 讀取/寫入 boolean 值。 true 如果ApplicationHost.config和Administration.config檔案的位置會重新導向至 屬性所 RedirectionPath 指定的位置,則為 , 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

規格需求

類型 描述
Client - 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
MOF 檔案 WebAdministration.mof

另請參閱

ConfigurationSection 類別