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
)
Visual Basic
Public Sub Add ( _
	fileName As String, _
	entryName As String _
)

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.

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