Nevron Open Vision Documentation
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.


In This Topic
    CompressZip(Stream,ENCompressionLevel,String,INZipCompressor) Method
    In This Topic
    Compresses the streams provided by the zipCompressor interface implementation in ZIP format to the specified output stream.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub CompressZip( _
       ByVal output As System.IO.Stream, _
       ByVal compressionLevel As ENCompressionLevel, _
       ByVal password As System.String, _
       ByVal zipCompressor As INZipCompressor _
    ) 
    'Usage
     
    
    Dim output As System.IO.Stream
    Dim compressionLevel As ENCompressionLevel
    Dim password As System.String
    Dim zipCompressor As INZipCompressor
     
    NCompression.CompressZip(output, compressionLevel, password, zipCompressor)
    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