'Declaration Public Overloads Shared Sub Unzip( _ ByVal zipFileName As String, _ ByVal destinationFolder As String, _ ByVal decryptionPassword As String, _ ByVal replaceExistingFiles As Boolean, _ ByVal recursive As Boolean, _ ByVal preservePaths As Boolean, _ ByVal diskRequiredCallback As QuickZip.DiskRequiredCallback, _ ByVal userParams As Object, _ ByVal ParamArray filesToUnzip() As String _ )
'Usage Dim zipFileName As String Dim destinationFolder As String Dim decryptionPassword As String Dim replaceExistingFiles As Boolean Dim recursive As Boolean Dim preservePaths As Boolean Dim diskRequiredCallback As QuickZip.DiskRequiredCallback Dim userParams As Object Dim filesToUnzip() As String QuickZip.Unzip(zipFileName, destinationFolder, decryptionPassword, replaceExistingFiles, recursive, preservePaths, diskRequiredCallback, userParams, filesToUnzip)
public static void Unzip( string zipFileName, string destinationFolder, string decryptionPassword, bool replaceExistingFiles, bool recursive, bool preservePaths, QuickZip.DiskRequiredCallback diskRequiredCallback, object userParams, params string[] filesToUnzip )
Parameters
- zipFileName
- The fully-qualified path and name of the zip file.
- destinationFolder
- The destination folder to where the files will be extracted.
- decryptionPassword
- The password that will be used to decrypt the files.
- replaceExistingFiles
- Boolean value indicating if existing files should be overwritten.
- recursive
- Boolean value indicating if files contained within sub-folders should be extracted from the zip file.
- preservePaths
- Boolean value indicating if the directory structure should be preserved in the destination folder.
- diskRequiredCallback
- The callback method called whenever the DiskRequired event is triggered.
- userParams
- Opaque data which will be passed back to the callback method.
- filesToUnzip
- The files to extract from zipFileName. Cannot be a null reference (Nothing in Visual Basic).