ZIP.Create method |
|
Remarks
Creates a brand new ZIP file session.
For further details about methods for ZIP management refer to the ZipMan class.
For details about using ZIP management refer to the How to manage ZIP files tutorial.
Syntax
[Visual Basic] Public Function Create ( strZipFilePathname as String, nEncryptionType as enumZipEncryptionTypes, strPassword as String, bool bReplaceExisting ) as enumErrorCodes |
[C#] public enumErrorCodes Create ( string strZipFilePathname, enumZipEncryptionTypes nEncryptionType, string strPassword, bool bReplaceExisting ); |
[C++] public: enumErrorCodes Create ( string strZipFilePathname, enumZipEncryptionTypes nEncryptionType, string strPassword, bool bReplaceExisting ); |
Parameter |
Description |
||||||||||||||||||
|
|
||||||||||||||||||
strZipFilePathname |
String representing the absolute pathname of the ZIP file to open. |
||||||||||||||||||
nEncryptionType |
The type of protection/encryption to apply. Supported values are the following:
|
||||||||||||||||||
strPassword |
String containing the optional password to set for future files extraction or adding operations; leave it empty if not needed. |
||||||||||||||||||
bReplaceExisting |
Boolean value that specifies if an eventual ZIP file having the same pathname should be replaced or simply opened. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred. Check the LastError property value in order to see the last error. |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful. |