ZipArchiverBuild(IEnumerableString, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel) Method
Compresses the specified source files or diretories 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(
IEnumerable<string> sourceFileOrDirs,
string outputFilepath,
string password,
EncryptionAlgorithm passwordEncryption,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel
)
Public Function Build (
sourceFileOrDirs As IEnumerable(Of String),
outputFilepath As String,
password As String,
passwordEncryption As EncryptionAlgorithm,
compressionMethod As CompressionMethod,
compressionLevel As CompressionLevel
) As String
Dim instance As ZipArchiver
Dim sourceFileOrDirs As IEnumerable(Of 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(sourceFileOrDirs,
outputFilepath, password, passwordEncryption,
compressionMethod, compressionLevel)
public:
String^ Build(
IEnumerable<String^>^ sourceFileOrDirs,
String^ outputFilepath,
String^ password,
EncryptionAlgorithm passwordEncryption,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel
)
member Build :
sourceFileOrDirs : IEnumerable<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.
- sourceFileOrDirs IEnumerableString
-
The source files or diretories.
- 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.
|