DeflateStream Constructor

DeflateStream Constructor

 

Initializes a new instance of the DeflateStream class.

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

NameDescription
System_CAPS_pubmethodDeflateStream(Stream, CompressionLevel)

Initializes a new instance of the DeflateStream class by using the specified stream and compression level.

System_CAPS_pubmethodDeflateStream(Stream, CompressionLevel, Boolean)

Initializes a new instance of the DeflateStream class by using the specified stream and compression level, and optionally leaves the stream open.

System_CAPS_pubmethodDeflateStream(Stream, CompressionMode)

Initializes a new instance of the DeflateStream class by using the specified stream and compression mode.

System_CAPS_pubmethodDeflateStream(Stream, CompressionMode, Boolean)

Initializes a new instance of the DeflateStream class by using the specified stream and compression mode, and optionally leaves the stream open.

Using the DeflateStream class to compress a file larger than 4 GB will cause an exception.

Return to top
Show:
© 2016 Microsoft