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 类来压缩和扩展会话状态数据。

适用于