[]
        
(Showing Draft Content)

C1.Zip.C1ZipFile.-ctor

C1ZipFile Constructor

C1ZipFile()

Initializes a new instance of the C1ZipFile class.

Declaration
public C1ZipFile()

C1ZipFile(string, bool)

Initializes a new instance of the C1ZipFile class and creates or opens a zip file associated with this new instance.

Declaration
public C1ZipFile(string fileName, bool create)
Parameters
Type Name Description
string fileName

The name of the zip file to open or create.

bool create

True to create a new zip file, false to open an existing file.

Remarks

If create is true and the zip file already exists, it is overwritten with a new empty file.

If create is false and the zip file already exists, the existing file is opened.

C1ZipFile(string)

Initializes a new instance of the C1ZipFile class and opens a zip file associated with this new instance.

Declaration
public C1ZipFile(string fileName)
Parameters
Type Name Description
string fileName

The name of the zip file to open.

Remarks

If the file does not exist, a new empty file is created.

C1ZipFile(Stream, bool)

Initializes a new instance of the C1ZipFile class and opens a zip stream associated with this new instance.

Declaration
public C1ZipFile(Stream stream, bool create)
Parameters
Type Name Description
Stream stream

Stream that contains the zip data.

bool create

Whether to initialize the stream with an empty zip header or open an existing zip file in the stream.

C1ZipFile(Stream)

Initializes a new instance of the C1ZipFile class and opens a zip stream associated with this new instance.

Declaration
public C1ZipFile(Stream stream)
Parameters
Type Name Description
Stream stream

Stream that contains the zip data.