Export (0) Print
Expand All

CompressionMode Enumeration

Specifies whether to compress or decompress the underlying stream.

Namespace:  System.IO.Compression
Assembly:  System (in System.dll)

type CompressionMode

Member nameDescription
Supported by the XNA FrameworkSupported by Portable Class LibraryCompressCompresses the underlying stream.
Supported by the XNA FrameworkSupported by Portable Class LibraryDecompressDecompresses 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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft