語言

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

屬性值

true 若啟用壓縮;否則 false。 預設值為 false。

屬性

備註

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

適用於