The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CompressionMode Enumeration
.NET Framework (current version)
Specifies whether to compress or decompress the underlying stream.
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| Compress | Compresses the underlying stream. | |
| Decompress | Decompresses the underlying stream. |
This enumeration is used with the GZipStream and DeflateStream classes.
The following code example uses the CompressionMode enumeration with the GZipStream class to compress and decompress a file.
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: