ZipArchive.Save Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
Save()
Saves pending changes into the ZIP archive and flushes the underlying stream.
Declaration
public void Save()
Remarks
There is no need to call this method if the SaveMode property is set to Immediate (which is the default value).
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Archive is not opened for writing. |
ObjectDisposedException | Archive was already disposed. |
IOException | An I/O error occurred. |
ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |
Save(ArchiveSaveAction)
Saves pending changes into the ZIP archive and flushes the underlying stream.
Declaration
public void Save(ArchiveSaveAction action)
Parameters
Type | Name | Description |
---|---|---|
ArchiveSaveAction | action | Save action. |
Remarks
There is no need to call this method if the SaveMode property is set to Immediate (which is the default value).
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The |
InvalidOperationException | Archive is not opened for writing. |
ObjectDisposedException | Archive was already disposed. |
IOException | An I/O error occurred. |
ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |