Specifies the opening mode of the archive.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Enumeration ArchiveOpenMode
C#
public enum ArchiveOpenMode

Members

Member nameDescription
OpenOrCreate
Opens an existing archive file; otherwise, creates a new archive file. Empty file is treated as an empty archive.
CreateNew
Creates a new archive file. If the file already exists an exception is thrown. This requires ReadWrite.
Create
Creates a new archive file. If the file already exists it is truncated to zero length. This requires ReadWrite.
Open
Opens an existing archive file. If the file doesn't exists an exception is thrown. Empty file is treated as an empty archive.
Truncate
Opens an existing archive file and truncate it. If the file doesn't exists an exception is thrown. This requires ReadWrite.

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also