MobileForms Toolkit Documentation

ZipArchive.OpenFile Method (String, ZipFileMode, String, Int32)

Opens a ZipStream on the specified path with password and compression level.

public ZipStream OpenFile(
string fileName,
ZipFileMode mode,
string password,
int compLevel
);

Parameters

fileName
The file to open.
mode
A ZipFileMode value that specifies whether a file is extracted or created if one does not exist, and determines whether the contents of existing files are overwritten.
password
A password for the file
compLevel
A compression level if new file is created.

Return Value

A ZipStream opened in the specified mode and path. If the path is a directort return value is null.

See Also

ZipArchive Class | Resco.IO.Zip Namespace | ZipArchive.OpenFile Overload List