ComponentOne Zip for .NET 2.0
C1.Zip Assembly / C1.Zip Namespace / C1ZipEntryCollection Class / Add Method / Add(String,String,DateTime) Method
Name of the file to add to the zip file.
Name of the new entry as stored in the zip file.
The date and time when the file was last modified.

In This Topic
    Add(String,String,DateTime) 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, _
       ByVal dateTime As Date _
    ) 
    public void Add( 
       string fileName,
       string entryName,
       DateTime dateTime
    )

    Parameters

    fileName
    Name of the file to add to the zip file.
    entryName
    Name of the new entry as stored in the zip file.
    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