ScriptingScriptResourceHandlerSection.EnableCompression 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定是否對內嵌在組件中做為資源的指令碼檔啟用壓縮。
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) 。
腳本資源處理常式所提供的腳本。
注意
如果要求的瀏覽器不支援壓縮,則這個屬性不會有任何作用。