ZipArchive.SaveAsync Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9313)
SaveAsync(ArchiveSaveAction, Object)
Begins asynchronous Save operation. Saves pending changes into the ZIP archive and flushes the underlying stream.
Declaration
public Task SaveAsync(ArchiveSaveAction action, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ArchiveSaveAction | action | Save action. |
| Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task |
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). |