共用方式為


ScriptingScriptResourceHandlerSection.EnableCompression 屬性

定義

取得或設定是否啟用壓縮,針對嵌入組譯組語言中的腳本檔案作為資源。

public:
 property bool EnableCompression { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableCompression", DefaultValue=true)]
public bool EnableCompression { get; set; }
[<System.Configuration.ConfigurationProperty("enableCompression", DefaultValue=true)>]
member this.EnableCompression : bool with get, set
Public Property EnableCompression As Boolean

屬性值

true如果對於嵌入為組件語言中的資源腳本檔案啟用壓縮;否則,。 false 預設值為 true

屬性

備註

屬性 EnableCompression 會取得或設定值,表示以下值是否會被壓縮:

  • 腳本檔案嵌入為組件中的資源。

  • 本地化物件,例如包含在資源檔案(.resx)中的字串資源。

  • 由腳本資源處理器所服務的腳本。

備註

如果請求的瀏覽器不支援壓縮,這個屬性就不會生效。

適用於