ZipArchiverBuild(String, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel) Method
Compresses the specified source file or diretory into a Zip archive, with a password, using the specified compression parameters.
Namespace: DevCase.ThirdParty.DotNetZipAssembly: DevCase.net48.ThirdParty.DotNetZip (in DevCase.net48.ThirdParty.DotNetZip.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public string Build(
string sourceFileOrDir,
string outputFilepath,
string password,
EncryptionAlgorithm passwordEncryption,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel
)
Public Function Build (
sourceFileOrDir As String,
outputFilepath As String,
password As String,
passwordEncryption As EncryptionAlgorithm,
compressionMethod As CompressionMethod,
compressionLevel As CompressionLevel
) As String
Dim instance As ZipArchiver
Dim sourceFileOrDir As String
Dim outputFilepath As String
Dim password As String
Dim passwordEncryption As EncryptionAlgorithm
Dim compressionMethod As CompressionMethod
Dim compressionLevel As CompressionLevel
Dim returnValue As String
returnValue = instance.Build(sourceFileOrDir,
outputFilepath, password, passwordEncryption,
compressionMethod, compressionLevel)
public:
String^ Build(
String^ sourceFileOrDir,
String^ outputFilepath,
String^ password,
EncryptionAlgorithm passwordEncryption,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel
)
member Build :
sourceFileOrDir : string *
outputFilepath : string *
password : string *
passwordEncryption : EncryptionAlgorithm *
compressionMethod : CompressionMethod *
compressionLevel : CompressionLevel -> string
No code example is currently available or this language may not be supported.
- sourceFileOrDir String
-
The source file or diretory.
- outputFilepath String
-
The path of the output file to create.
- password String
-
The password.
- passwordEncryption EncryptionAlgorithm
-
The encryption algorithm for the password.
- compressionMethod CompressionMethod
-
The compression method.
- compressionLevel CompressionLevel
-
The compression level.
String
The full path of the resulting Zip archive.
FileNotFoundException
|
Source file or directory not found.
|