ZipOutputStream.PutNextEntry Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipOutputStream.PutNextEntry Method 

Starts a new Zip entry. It automatically closes the previous entry if present. All entry elements bar name are optional, but must be correct if present. If the compression method is stored and the output is not patchable the compression for that entry is automatically changed to deflate level 0

public void PutNextEntry(
   ZipEntry entry
);

Parameters

entry
the entry.

Exceptions

Exception Type Condition
ArgumentNullException if entry passed is null.
IOException if an I/O error occured.
InvalidOperationException if stream was finished
ZipException Too many entries in the Zip file
Entry name is too long
Finish has already been called

See Also

ZipOutputStream Class | ICSharpCode.SharpZipLib.Zip Namespace