NevronOpenVision
Nevron.Nov.Compression Namespace / NCompression Class / CompressZip Method / CompressZip(Stream,ENCompressionLevel,String,INZipCompressor) Method
The stream to write the compressed data to.
The compression level to apply.
The password to encrypt the ZIP stream with. Pass null if you don't want to encrypt the ZIP archive.
An interface implementation that should determine the streams to compress and their names.
CompressZip(Stream,ENCompressionLevel,String,INZipCompressor) Method
Compresses the streams provided by the zipCompressor interface implementation in ZIP format to the specified output stream.
Syntax
public static void CompressZip( 
   System.IO.Stream output,
   ENCompressionLevel compressionLevel,
   System.string password,
   INZipCompressor zipCompressor
)

Parameters

output
The stream to write the compressed data to.
compressionLevel
The compression level to apply.
password
The password to encrypt the ZIP stream with. Pass null if you don't want to encrypt the ZIP archive.
zipCompressor
An interface implementation that should determine the streams to compress and their names.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also