Sdílet prostřednictvím


SessionStateSection.CompressionEnabled Vlastnost

Definice

Získá nebo nastaví hodnotu, která označuje, zda je komprese povolena pro data stavu relace.

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

Hodnota vlastnosti

Boolean

true je-li povolena komprese; jinak false. Výchozí formát je false.

Atributy

Poznámky

Pokud je hodnota nastavena CompressionEnabled na true, ASP.NET používá GZipStream třídu ke komprimaci a rozšíření dat stavu relace.

Platí pro