共用方式為


SessionStateSection.CompressionEnabled 屬性

定義

取得或設定值,這個值表示是否已啟用工作階段狀態資料的壓縮。

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

屬性值

Boolean

如果已啟用壓縮則為 true,否則為 false。 預設為 false

屬性

備註

CompressionEnabled當值設定為 true 時,ASP.NET 會 GZipStream 使用 類別來壓縮和展開會話狀態資料。

適用於