ComponentOne Zip for .NET
Add(String,String) Method

C1.C1Zip.4 Assembly > C1.C1Zip Namespace > C1ZipEntryCollection Class > Add Method : Add(String,String) Method
Name of the file to add to the zip file.
Name of the new entry as stored in the zip file.
Adds an entry to the current zip file.
Syntax
Public Overloads Sub Add( _
   ByVal fileName As String, _
   ByVal entryName As String _
) 
public void Add( 
   string fileName,
   string entryName
)

Parameters

fileName
Name of the file to add to the zip file.
entryName
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

Reference

C1ZipEntryCollection Class
C1ZipEntryCollection Members
Overload List