Specifies whether to compress or decompress the underlying stream.
|Compress||Compresses the underlying stream.|
|Decompress||Decompresses the underlying stream.|
The following code example uses the CompressionMode enumeration with the GZipStream class to compress and decompress a file.
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0
Portable Class Library
Supported in: Portable Class Library
Supported in: Windows Phone 8.1