Skip to main content
.NET Framework 4.5.2+

ZipArchive.CatchExceptions Property

Allows you to set an application-wide flag that specifies whether exceptions which occur in ZipArchive operations are caught.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v22.2.dll


public static bool? CatchExceptions { get; set; }

Property Value

Type Description

True to catch exceptions; false to allow exceptions to propagate; if null or not set, no effect.


You can explicitly set the CatchExceptions property to override the behavior specified in ZipArchive.Read method calls and in the ZipArchive constructor. Once set, it affects all ZipArchive instances. If true, exceptions are intercepted, if false, exceptions are allowed to propagate.

See Also