Skip to main content
.NET Framework 4.5.2+

ZipArchiveOptionsBehavior.AllowFileOverwrite Property

Gets or sets the default behavior in case of a file conflict when extracting files from an archive.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v22.2.dll


public AllowFileOverwriteMode AllowFileOverwrite { get; set; }

Property Value

Type Description

An AllowFileOverwriteMode enumeration value that specifies the default behavior.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowFileOverwrite


You can decide whether the file with the same name should be overwritten for each file individually by setting the AllowFileOverwrite to AllowFileOverwriteMode.Custom and handling the ZipArchive.AllowFileOverwrite event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowFileOverwrite property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also