ZipArchiver Class

A Zip file archiver.

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 sealed class ZipArchiver : IDisposable
Inheritance
Object    ZipArchiver
Implements
IDisposable

Remarks

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

DotNetZip by Henrik/Dino Chiesa

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

ZipArchiver Initializes a new instance of the ZipArchiver class.

Methods

Build(IEnumerableString, String) Compresses the specified source files or diretories into a Zip archive using the default compression parameters.
Build(String, String) Compresses the specified source file or diretory into a Zip archive using the default compression parameters.
Build(IEnumerableString, String, CompressionMethod, CompressionLevel) Compresses the specified source files or diretories into a Zip archive using the specified compression parameters.
Build(IEnumerableString, String, String, EncryptionAlgorithm) Compresses the specified source files or diretories into a Zip archive, with a password, using the default compression parameters.
Build(String, String, CompressionMethod, CompressionLevel) Compresses the specified source file or diretory into a Zip archive using the specified compression parameters.
Build(String, String, String, EncryptionAlgorithm) Compresses the specified source file or diretory into a Zip archive, with a password, using the default compression parameters.
Build(IEnumerableString, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel) Compresses the specified source files or diretories into a Zip archive, with a password, using the specified compression parameters.
Build(String, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel) Compresses the specified source file or diretory into a Zip archive, with a password, using the specified compression parameters.
BuildSfx(IEnumerableString, String) Compresses the specified source files or diretories into a self-extracting archive (SFX) using the default compression parameters.
BuildSfx(String, String) Compresses the specified source file or diretory into a self-extracting archive (SFX) using the default compression parameters.
BuildSfx(IEnumerableString, String, CompressionMethod, CompressionLevel) Compresses the specified source files or diretories into a self-extracting archive (SFX) using the specified compression parameters.
BuildSfx(IEnumerableString, String, String, EncryptionAlgorithm) Compresses the specified source files or diretories into a self-extracting archive (SFX), with a password, using the default compression parameters.
BuildSfx(String, String, CompressionMethod, CompressionLevel) Compresses the specified source file or diretory into a self-extracting archive (SFX) using the specified compression parameters.
BuildSfx(String, String, String, EncryptionAlgorithm) Compresses the specified source file or diretory into a self-extracting archive (SFX), with a password, using the default compression parameters.
BuildSfx(IEnumerableString, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel) Compresses the specified source files or diretories into a self-extracting archive (SFX), with a password, using the specified compression parameters.
BuildSfx(String, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel) Compresses the specified source file or diretory into a self-extracting archive (SFX), with a password, using the specified compression parameters.
BuildSfx(IEnumerableString, String, CompressionMethod, CompressionLevel, String, Boolean, ExtractExistingFileAction, Boolean, String, String, SelfExtractorFlavor, String) Compresses the specified source files or diretories into a self-extracting archive (SFX), using the specified compression and SFX parameters.
BuildSfx(String, String, CompressionMethod, CompressionLevel, String, Boolean, ExtractExistingFileAction, Boolean, String, String, SelfExtractorFlavor, String) Compresses the specified source file or diretory into a self-extracting archive (SFX), using the specified compression and SFX parameters.
BuildSfx(IEnumerableString, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel, String, Boolean, ExtractExistingFileAction, Boolean, String, String, SelfExtractorFlavor, String) Compresses the specified source files or diretories into a self-extracting archive (SFX), with a password, using the specified compression and SFX parameters.
BuildSfx(String, String, String, EncryptionAlgorithm, CompressionMethod, CompressionLevel, String, Boolean, ExtractExistingFileAction, Boolean, String, String, SelfExtractorFlavor, String) Compresses the specified source file or diretory into a self-extracting archive (SFX), with a password, using the specified compression and SFX parameters.
Dispose Releases all the resources used by this instance.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Extract(String, String, ExtractExistingFileAction) Extracts the contents of the source zip archive to the specified diretory.
Extract(String, String, ExtractExistingFileAction, String) Extracts the encrypted contents of the source zip archive to the specified diretory.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Events

CompressionProgressChanged Occurs when the compression progress has changed.
ExtractionProgressChanged Occurs when the extraction progress has changed.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also