Initializes a ZipArchive object with the specified ZIP archive stream.

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

Syntax

Visual Basic
Public Sub New ( _
	zipStream As Stream, _
	closeMode As ArchiveStreamCloseMode _
)
C#
public ZipArchive(
	Stream zipStream,
	ArchiveStreamCloseMode closeMode
)

Parameters

zipStream
Type: System.IO..::..Stream
A readable/seekable stream containing a ZIP archive or empty writable/seekable stream where to create a new ZIP archive.
closeMode
Type: Rebex.IO.Compression..::..ArchiveStreamCloseMode
A close behavior of the zipStream.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionzipStream is null.
System..::..ArgumentExceptionSpecified stream is not seekable or readable.
System.IO..::..IOExceptionAn I/O error occurred.
Rebex.IO.Compression..::..ZipExceptionArchive cannot be opened (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also