Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AllowFileOverwriteMode Enum

Lists available modes to handle a file conflict when unzipping the archive.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public enum AllowFileOverwriteMode

#Members

Name Description
Custom

Fires the ZipArchive.AllowFileOverwrite event if a file name conflict occurs.

Allow

Allows you to overwrite files in the destination path without prompting.

Forbidden

If a file name conflict occurs, the unzipping process skips to the next zip item and the file in the destination path remains intact.

#Related API Members

The following properties accept/return AllowFileOverwriteMode values:

#Remarks

If the ZipArchive.Extract or the ZipItem.Extract method tries to create a file with a name that already exists, a file conflict occurs. You can specify the ZipArchiveOptionsBehavior.AllowFileOverwrite property to handle the conflict automatically.

See Also