ZipFile Constructor (fileName, encoding)

DotNetZip

Ionic Zip Library v1.9.1.6 ZipFile Constructor (fileName, encoding)
ReferenceIonic.ZipZipFileZipFile(String, Encoding)
Creates a new ZipFile instance, using the specified name for the filename, and the specified Encoding.
Declaration Syntax
C# Visual Basic Visual C++
public ZipFile(
	string fileName,
	Encoding encoding
)
Public Sub New ( _
	fileName As String, _
	encoding As Encoding _
)
public:
ZipFile(
	String^ fileName, 
	Encoding^ encoding
)
Parameters
fileName (String)
The filename to use for the new zip archive.
encoding (Encoding)
The Encoding is used as the default alternate encoding for entries with filenames or comments that cannot be encoded with the IBM437 code page.
Remarks

See the documentation on the ZipFile constructor that accepts a single string argument for basic information on all the ZipFile constructors.

The Encoding is used as the default alternate encoding for entries with filenames or comments that cannot be encoded with the IBM437 code page. This is equivalent to setting the ProvisionalAlternateEncoding property on the ZipFile instance after construction.

Instances of the ZipFile class are not multi-thread safe. You may not party on a single instance with multiple threads. You may have multiple threads that each use a distinct ZipFile instance, or you can synchronize multi-thread access to a single instance.

Exceptions
Exception Condition
ZipException Thrown if name refers to an existing file that is not a valid zip file.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)