SessionStateSection.CompressionEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否啟用會話狀態資料的壓縮。
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 類別來壓縮和擴展會話狀態資料。