Skip to main content

ZipArchive(Boolean) Constructor

Initializes a new instance of the ZipArchive class and specifies whether to catch exceptions in archive operations.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor


public ZipArchive(
    bool catchExceptions


Name Type Description
catchExceptions Boolean

True, to catch exceptions during archive operations; otherwise, false.


You can also use the static ZipArchive.CatchExceptions property and ZipArchive.Read method overrides to change the archive behavior regarding exceptions. When exceptions are caught by default, you can handle the ZipArchive.Error event to analyze them and perform the required actions.

See Also