[]
        
(Showing Draft Content)

C1.Zip.C1ZipEntryCollection.OpenWriter

OpenWriter Method

OpenWriter(string, bool)

Opens a stream for writing an entry into the zip file.

Declaration
public Stream OpenWriter(string entryName, bool useMemory)
Parameters
Type Name Description
string entryName

The name of the new entry.

bool useMemory

Whether to use a memory stream or temporary file.

Returns
Type Description
Stream

A stream that can be used to write data into the zip file. The entry is not added until the stream is closed.

OpenWriter(string, DateTime, bool)

Opens a stream for writing an entry into the zip file.

Declaration
public Stream OpenWriter(string entryName, DateTime dateTime, bool useMemory)
Parameters
Type Name Description
string entryName

The name of the new entry.

DateTime dateTime

The date and time when the file was last modified.

bool useMemory

Whether to use a memory stream or temporary file.

Returns
Type Description
Stream

A stream that can be used to write data into the zip file. The entry is not added until the stream is closed.