共用方式為


WebControlsSection 類別

指定用戶端腳本檔案的共用位置。

Syntax

class WebControlsSection : ConfigurationSection  

方法

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

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

屬性

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

名稱 描述
ClientScriptsLocation 指定用戶端腳本位置的必要讀取/寫入 string 值。 預設值為 「/aspnet_client/ {0} / {1} /」。注意:「 {0} 」 會取代為命名空間名稱 (例如,system_web) ,而 「 {1} 」 將會取代為.NET Framework版本號碼。
Location (繼承自 ConfigurationSection .) 索引鍵屬性。
Path (繼承自 ConfigurationSection .) 索引鍵屬性。
SectionInformation (繼承自 ConfigurationSection。)

子類別

這個類別不包含子類別。

繼承階層架構

ConfigurationSection

WebControlsSection

規格需求

類型 Description
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

另請參閱

System.Web.Configuration.SystemWebSectionGroup.WebControlsConfigurationSection 類別
webControls 項目 (ASP.NET 設定結構描述)