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

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

Declaration

public static bool? CatchExceptions { get; set; }
Public Shared Property CatchExceptions As Boolean?

Property Value

Type Description
Nullable<Boolean>

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

Remarks

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