Skip to main content
.NET Framework Class Library
System.IO.Compression Namespace

The System.IO.Compression namespace contains classes that provide basic compression and decompression services for streams.

Classes
  ClassDescription
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps DeflateStreamProvides methods and properties for compressing and decompressing streams by using the Deflate algorithm.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps GZipStreamProvides methods and properties used to compress and decompress streams.
Public class Supported in .NET for Windows Store apps ZipArchiveRepresents a package of compressed files in the zip archive format.
Public class Supported in .NET for Windows Store apps ZipArchiveEntryRepresents a compressed file within a zip archive.
Public class ZipFileProvides static methods for creating, extracting, and opening zip archives.
Public class ZipFileExtensionsProvides extension methods for the ZipArchive and ZipArchiveEntry classes.
Enumerations
  EnumerationDescription
Public enumeration Supported in .NET for Windows Store apps CompressionLevelSpecifies values that indicate whether a compression operation emphasizes speed or compression size.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps CompressionMode Specifies whether to compress or decompress the underlying stream.
Public enumeration Supported in .NET for Windows Store apps ZipArchiveModeSpecifies values for interacting with zip archive entries.