Editar

Partilhar via


SessionStateSection.CompressionEnabled Property

Definition

Gets or sets a value that indicates whether compression is enabled for session-state data.

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

Property Value

true if compression is enabled; otherwise false. The default is false.

Attributes

Remarks

When the CompressionEnabled value is set to true, ASP.NET uses the GZipStream class to compress and expand session-state data.

Applies to