DeflateStream Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: