ZipArchive Constructor (Stream^, ZipArchiveMode)
.NET Framework (current version)
Initializes a new instance of the ZipArchive class from the specified stream and with the specified mode.
Assembly: System.IO.Compression (in System.IO.Compression.dll)
Parameters
- stream
-
Type:
System.IO::Stream^
The input or output stream.
- mode
-
Type:
System.IO.Compression::ZipArchiveMode
One of the enumeration values that indicates whether the zip archive is used to read, create, or update entries.
| Exception | Condition |
|---|---|
| ArgumentException | The stream is already closed, or the capabilities of the stream do not match the mode. |
| ArgumentNullException | stream is null. |
| ArgumentOutOfRangeException | mode is an invalid value. |
| InvalidDataException |
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: