ComponentOne Zip for .NET
OpenWriter(String,DateTime,Boolean) Method



C1.C1Zip.4 Assembly > C1.C1Zip Namespace > C1ZipEntryCollection Class > OpenWriter Method : OpenWriter(String,DateTime,Boolean) Method
The name of the new entry.
The date and time when the file was last modified.
Whether to use a memory stream or temporary file.
Opens a stream for writing an entry into the zip file.
Syntax
Public Overloads Function OpenWriter( _
   ByVal entryName As String, _
   ByVal dateTime As Date, _
   ByVal useMemory As Boolean _
) As Stream
Dim instance As C1ZipEntryCollection
Dim entryName As String
Dim dateTime As Date
Dim useMemory As Boolean
Dim value As Stream
 
value = instance.OpenWriter(entryName, dateTime, useMemory)
public Stream OpenWriter( 
   string entryName,
   DateTime dateTime,
   bool useMemory
)
public:
Stream^ OpenWriter( 
   String^ entryName,
   DateTime dateTime,
   bool useMemory
) 

Parameters

entryName
The name of the new entry.
dateTime
The date and time when the file was last modified.
useMemory
Whether to use a memory stream or temporary file.

Return Value

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

Reference

C1ZipEntryCollection Class
C1ZipEntryCollection Members
Overload List