Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ZipArchive.SaveAsync Method

Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)

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 action specified an invalid value.

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).

In This Article
  • SaveAsync(ArchiveSaveAction, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies