The C1ZipFile type exposes the following members.

Constructors

  Name Description
Public method C1ZipFile()()()()
Initializes a new instance of the C1ZipFile class.
Public method C1ZipFile(Stream)
Initializes a new instance of the C1ZipFile class and opens a zip stream associated with this new instance.
Public method C1ZipFile(String)
Initializes a new instance of the C1ZipFile class and opens a zip file associated with this new instance.
Public method C1ZipFile(Stream, Boolean)
Initializes a new instance of the C1ZipFile class and opens a zip stream associated with this new instance.
Public method C1ZipFile(String, Boolean)
Initializes a new instance of the C1ZipFile class and creates or opens a zip file associated with this new instance.

Methods

  Name Description
Public method Close
Resets all data members of the C1ZipFile object.
Public method CloseBatch
Closes a zip file after it was opened with a call to the OpenBatch()()()() method.
Public method Create(Stream)
Creates a new zip file in a stream.
Public method Create(String)
Creates an empty zip file on disk.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member IsZipFile(Stream)
Tests whether a stream contains a valid zip file.
Public method Static member IsZipFile(String)
Tests whether a file is a valid zip file.
Public method Open(Stream)
Opens an existing zip file stored in a Stream.
Public method Open(String)
Opens an existing zip file.
Public method OpenBatch
Opens the zip file for multiple operations.
Public method Refresh
Refreshes all data members by re-opening the current zip file.
Public method ToString (Inherited from Object.)

Properties

  Name Description
Public property Comment
Gets or sets a comment associated with the current zip file.
Public property CompressionLevel
Gets or sets the compression level to use when adding entries to the zip file.
Public property Entries
Gets a C1ZipEntryCollection that contains the entries in the zip file.
Public property FileName
Gets the name of the current zip file.
Public property MemoryThreshold
Gets or sets the size of the largest stream to be compressed in memory.
Public property OverwriteHidden
Determines whether the component should overwrite hidden files when extracting entries from the zip file.
Public property OverwriteReadOnly
Determines whether the component should overwrite read-only files when extracting entries from the zip file.
Public property OverwriteSystem
Determines whether the component should overwrite system files when extracting entries from the zip file.
Public property Password
Gets or sets the password to use when adding or retrieving entries from the zip file.
Public property TempFileName
Gets or sets the name of the temporary file to use when adding entries to the zip file.

Events

  Name Description
Public event Progress
Fired while data is being read from or written into a zip file.

See Also