ZipArchive.Close Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9313)
Close()
Closes the current Zip
Declaration
public void Close()
Remarks
Note that underlying stream is not closed if the Zip
Exceptions
| Type | Condition |
|---|---|
| Invalid |
Attempt to shrink the archive, but archive is not opened for writing. |
| IOException | An I/O error occurred while shrinking the archive. |
| Zip |
Cannot perform the requested operation (see Problem |
Close(ArchiveSaveAction)
Closes the current Zip
Declaration
public void Close(ArchiveSaveAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| Archive |
action | Save action. Specifies whether to save pending changes and shrink the ZIP archive. |
Remarks
Note that underlying stream is not closed if the Zip
Exceptions
| Type | Condition |
|---|---|
| Argument |
The |
| Invalid |
Attempt to shrink the archive, but archive is not opened for writing. |
| IOException | An I/O error occurred while shrinking the archive. |
| Zip |
Cannot perform the requested operation (see Problem |