Share via


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 です。

属性

注釈

値が CompressionEnabledtrue設定されている場合、ASP.NET は クラスを GZipStream 使用してセッション状態データを圧縮および展開します。

適用対象