System.IO.Compression.ZipArchive.ZipArchive C# (CSharp) Метод

ZipArchive() публичный Метод

Initializes a new instance of ZipArchive on the given stream in the specified mode, specifying whether to leave the stream open.
The stream is already closed. -or- mode is incompatible with the capabilities of the stream. The stream is null. mode specified an invalid value. The contents of the stream could not be interpreted as a Zip file. -or- mode is Update and an entry is missing from the archive or is corrupt and cannot be read. -or- mode is Update and an entry is too large to fit into memory.
public ZipArchive ( Stream stream, ZipArchiveMode mode, bool leaveOpen ) : System.Collections.Generic
stream Stream The input or output stream.
mode ZipArchiveMode See the description of the ZipArchiveMode enum. Read requires the stream to support reading, Create requires the stream to support writing, and Update requires the stream to support reading, writing, and seeking.
leaveOpen bool true to leave the stream open upon disposing the ZipArchive, otherwise false.
Результат System.Collections.Generic
        public ZipArchive(Stream stream, ZipArchiveMode mode, bool leaveOpen) : this(stream, mode, leaveOpen, entryNameEncoding: null) { }

Same methods

ZipArchive::ZipArchive ( System stream )
ZipArchive::ZipArchive ( System stream, System mode )
ZipArchive::ZipArchive ( System stream, System mode, bool leaveOpen )
ZipArchive::ZipArchive ( System stream, System mode, bool leaveOpen, System entryNameEncoding )
ZipArchive::ZipArchive ( Stream stream ) : System.Collections.Generic
ZipArchive::ZipArchive ( Stream stream, ZipArchiveMode mode ) : System.Collections.Generic
ZipArchive::ZipArchive ( Stream stream, ZipArchiveMode mode, bool leaveOpen, Encoding entryNameEncoding ) : System.Collections.Generic