.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.dll

Declaration

public ZipArchive(
    bool catchExceptions
)

Parameters

Name Type Description
catchExceptions Boolean

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

Remarks

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