Class ComHelper
This class exposes a set of COM-accessible wrappers for static methods available on the ZipFile class. You don't need this class unless you are using DotNetZip from a COM environment.
[Guid("ebc25cf6-9120-4283-b972-0e5520d0000F")]
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
public class ComHelper
- Inheritance
-
ComHelper
- Inherited Members
- Extension Methods
Methods
CheckZip(string)
A wrapper for ZipFile.CheckZip(string)
public bool CheckZip(string filename)
Parameters
filenamestringThe filename to of the zip file to check.
Returns
- bool
true if the named zip file checks OK. Otherwise, false.
CheckZipPassword(string, string)
A COM-friendly wrapper for the static method CheckZipPassword(string, string).
public bool CheckZipPassword(string filename, string password)
Parameters
Returns
- bool
true if the named zip file checks OK. Otherwise, false.
FixZipDirectory(string)
A wrapper for ZipFile.FixZipDirectory(string)
public void FixZipDirectory(string filename)
Parameters
filenamestringThe filename to of the zip file to fix.
GetZipLibraryVersion()
A wrapper for ZipFile.LibraryVersion
public string GetZipLibraryVersion()
Returns
- string
the version number on the DotNetZip assembly, formatted as a string.
IsZipFile(string)
A wrapper for ZipFile.IsZipFile(string)
public bool IsZipFile(string filename)
Parameters
filenamestringThe filename to of the zip file to check.
Returns
- bool
true if the file contains a valid zip file.
IsZipFileWithExtract(string)
A wrapper for ZipFile.IsZipFile(string, bool)
public bool IsZipFileWithExtract(string filename)
Parameters
filenamestringThe filename to of the zip file to check.
Returns
- bool
true if the file contains a valid zip file.
Remarks
We cannot use "overloaded" Method names in COM interop. So, here, we use a unique name.