定義支援部署 Web 應用程式的組態設定。
Syntax
class SystemWebDeploymentSection : ConfigurationSection
方法
下表列出 類別所 SystemWebDeploymentSection 公開的方法。
| 名稱 | 描述 |
|---|---|
| GetAllowDefinition | (繼承自 ConfigurationSection.) |
| GetAllowLocation | (繼承自 ConfigurationSection。) |
| RevertToParent | (繼承自 ConfigurationSection。) |
| SetAllowDefinition | (繼承自 ConfigurationSection。) |
| SetAllowLocation | (繼承自 ConfigurationSection。) |
屬性
下表列出 類別所 SystemWebDeploymentSection 公開的屬性。
| 名稱 | 描述 |
|---|---|
Location |
(繼承自 ConfigurationSection .) 金鑰屬性。 |
Path |
(繼承自 ConfigurationSection .) 金鑰屬性。 |
Retail |
讀取/寫入 boolean 值。 true 如果 Web 應用程式是以零售模式部署,則為 ;否則為 false 。 預設值為 false。當 為 true 時 Retail ,ASP.NET 將會停用組態檔中定義的特定設定,例如追蹤輸出、自訂錯誤和偵錯功能。 此屬性僅適用于電腦層級和應用層級組態檔。 |
SectionInformation |
(繼承自 ConfigurationSection。) |
子類別
這個類別不包含子類別。
繼承階層架構
SystemWebDeploymentSection
規格需求
| 類型 | 描述 |
|---|---|
| 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 |