SessionStateSection.CompressionEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.