ZipArchiverBuild(String, String, CompressionMethod, CompressionLevel) Method

Compresses the specified source file or diretory into a Zip archive using the specified compression parameters.

Definition

Namespace: DevCase.ThirdParty.DotNetZip
Assembly: 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,
	CompressionMethod compressionMethod,
	CompressionLevel compressionLevel
)

Parameters

sourceFileOrDir  String
The source file or diretory.
outputFilepath  String
The path of the output file to create.
compressionMethod  CompressionMethod
The compression method.
compressionLevel  CompressionLevel
The compression level.

Return Value

String
The full path of the resulting Zip archive.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

DotNetZip by Henrik/Dino Chiesa

Exceptions

FileNotFoundException Source file or directory not found.

See Also