ZipArchive Constructor (Stream, ZipArchiveMode, Boolean)
Initializes a new instance of the ZipArchive class on the specified stream for the specified mode, and optionally leaves the stream open.
Assembly: System.IO.Compression (in System.IO.Compression.dll)
- Type: System.IO::Stream
The input or output stream.
- Type: System.IO.Compression::ZipArchiveMode
One of the enumeration values that indicates whether the zip archive is used to read, create, or update entries.
The stream is already closed, or the capabilities of the stream do not match the mode.
stream is nullptr.
mode is an invalid value.
The contents of the stream could not be interpreted as a zip archive.
mode is Update and an entry is missing from the archive or is corrupt and cannot be read.
mode is Update and an entry is too large to fit into memory.