ComponentOne Zip for .NET 2.0
C1.Zip Assembly / C1.Zip 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.

In This Topic
    Add(String,String) Method
    In This Topic
    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