'DeclarationPublic Overloads Shared Sub Zip( _ ByVal zipFileName As String, _ ByVal encryptionPassword As String, _ ByVal encryptionMethod As EncryptionMethod, _ ByVal replaceExistingFiles As Boolean, _ ByVal recursive As Boolean, _ ByVal preservePaths As Boolean, _ ByVal splitSize As Long, _ ByVal splitNameFormat As SplitNameFormat, _ ByVal sfx As SfxPrefix, _ ByVal diskRequiredCallback As QuickZip.DiskRequiredCallback, _ ByVal byteProgressionCallback As QuickZip.ByteProgressionCallback, _ ByVal itemProgressionCallback As QuickZip.ItemProgressionCallback, _ ByVal userParams As Object, _ ByVal ParamArray filesToZip() As String _ )
'UsageDim zipFileName As String Dim encryptionPassword As String Dim encryptionMethod As EncryptionMethod Dim replaceExistingFiles As Boolean Dim recursive As Boolean Dim preservePaths As Boolean Dim splitSize As Long Dim splitNameFormat As SplitNameFormat Dim sfx As SfxPrefix Dim diskRequiredCallback As QuickZip.DiskRequiredCallback Dim byteProgressionCallback As QuickZip.ByteProgressionCallback Dim itemProgressionCallback As QuickZip.ItemProgressionCallback Dim userParams As Object Dim filesToZip() As String QuickZip.Zip(zipFileName, encryptionPassword, encryptionMethod, replaceExistingFiles, recursive, preservePaths, splitSize, splitNameFormat, sfx, diskRequiredCallback, byteProgressionCallback, itemProgressionCallback, userParams, filesToZip)
public static void Zip( string zipFileName, string encryptionPassword, EncryptionMethod encryptionMethod, bool replaceExistingFiles, bool recursive, bool preservePaths, long splitSize, SplitNameFormat splitNameFormat, SfxPrefix sfx, QuickZip.DiskRequiredCallback diskRequiredCallback, QuickZip.ByteProgressionCallback byteProgressionCallback, QuickZip.ItemProgressionCallback itemProgressionCallback, object userParams, params string[] filesToZip )
Parameters
- zipFileName
- The fully-qualified path and name of the zip file.The password that will be used to encrypt the files.Boolean value indicating whether existing files should be overwritten.Boolean value indicating if files contained within sub-folders should be added to the zip file.Boolean value indicating if the directory structure should be preserved in the zip file.The size, in bytes, of each split zip file part that will be created.The naming convention the split zip file parts will follow.The XceedSfxPrefix used to create the self-extracting zip file.The callback method called whenever the DiskRequired event is triggered.Delegate for ByteProgression notification.Delegate for ItemProgression notification.Opaque data that will be passed back to the event handler when an event is raised.zipFileName All subfolders will also be scanned for the specified file(s) even if wildcards are not used.a null reference (Nothing in Visual Basic)
- encryptionPassword
- encryptionMethod
- replaceExistingFiles
- recursive
- preservePaths
- splitSize
- splitNameFormat
- sfx
- diskRequiredCallback
- byteProgressionCallback
- itemProgressionCallback
- userParams
- filesToZip