Adds an entry to the current zip file.

Namespace:  C1.C1Zip
Assembly:  C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)

Syntax

C#
public void Add(
	string fileName,
	string entryName,
	DateTime dateTime
)
Visual Basic
Public Sub Add ( _
	fileName As String, _
	entryName As String, _
	dateTime As DateTime _
)

Parameters

fileName
Type: System..::..String
Name of the file to add to the zip file.
entryName
Type: System..::..String
Name of the new entry as stored in the zip file.
dateTime
Type: System..::..DateTime
The date and time when the file was last modified.

Remarks

By default, entries in the zip file have the same name as the original (uncompressed) file. This method allows you to specify a different name, including a path for example.

See Also