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
Exception | Condition |
---|---|
System..::..ArgumentNullException | zipStream is null. |
System..::..ArgumentException | Specified stream is not seekable or readable. |
System.IO..::..IOException | An I/O error occurred. |
Rebex.IO.Compression..::..ZipException | Archive cannot be opened (see ProblemType for detailed information). |