Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ZipArchive Constructor (Stream)

ZipArchive Constructor (Stream)

.NET Framework 4.6 and 4.5

Initializes a new instance of the ZipArchive class from the specified stream.

Namespace:  System.IO.Compression
Assembly:  System.IO.Compression (in System.IO.Compression.dll)

public ZipArchive(
	Stream stream
)

Parameters

stream
Type: System.IO.Stream

The stream that contains the archive to be read.

ExceptionCondition
ArgumentException

The stream is already closed or does not support reading.

ArgumentNullException

stream is null.

InvalidDataException

The contents of the stream are not in the zip archive format.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft