System.IO.Compression Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains classes that provide basic compression and decompression services for streams.
Classes
BrotliCompressionOptions |
Provides compression options to be used with BrotliStream. |
BrotliStream |
Provides methods and properties used to compress and decompress streams by using the Brotli data format specification. |
DeflateStream |
Provides methods and properties for compressing and decompressing streams by using the Deflate algorithm. |
GZipStream |
Provides methods and properties used to compress and decompress streams by using the GZip data format specification. |
ZipArchive |
Represents a package of compressed files in the zip archive format. |
ZipArchiveEntry |
Represents a compressed file within a zip archive. |
ZipFile |
Provides static methods for creating, extracting, and opening zip archives. |
ZipFileExtensions |
Provides extension methods for the ZipArchive and ZipArchiveEntry classes. |
ZLibCompressionOptions |
Provides compression options to be used with ZLibStream, DeflateStream, and GZipStream. |
ZLibStream |
Provides methods and properties used to compress and decompress streams by using the zlib data format specification. |
Structs
BrotliDecoder |
Provides non-allocating, performant Brotli decompression methods. The methods decompress in a single pass without using a BrotliStream instance. |
BrotliEncoder |
Provides methods and static methods to encode and decode data in a streamless, non-allocating, and performant manner using the Brotli data format specification. |
Enums
CompressionLevel |
Specifies values that indicate whether a compression operation emphasizes speed or compression size. |
CompressionMode |
Specifies whether to compress data to or decompress data from the underlying stream. |
ZipArchiveMode |
Specifies values for interacting with zip archive entries. |
ZLibCompressionStrategy |
Defines the compression algorithms that can be used for DeflateStream, GZipStream, and ZLibStream. |