DeflateStream Constructor (Stream, CompressionLevel)
Initializes a new instance of the DeflateStream class by using the specified stream and compression level.
Assembly: System (in System.dll)
You use this constructor when you want to specify whether compression efficiency or speed is more important for an instance of the DeflateStream class.
This constructor overload uses the compression mode Compress. To set the compression mode to another value, use the DeflateStream(Stream, CompressionMode) or DeflateStream(Stream, CompressionMode, Boolean) overload.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1