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

ZipArchive.Save Method

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

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 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
  • Save()
  • Save(ArchiveSaveAction)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies