Table of Contents

Class ComHelper

Namespace
Ionic.Zip
Assembly
SunamoDotNetZip.dll

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)

public bool CheckZip(string filename)

Parameters

filename string

The 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

filename string

The filename to of the zip file to check.

password string

The password to check.

Returns

bool

true if the named zip file checks OK. Otherwise, false.

FixZipDirectory(string)

public void FixZipDirectory(string filename)

Parameters

filename string

The 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)

public bool IsZipFile(string filename)

Parameters

filename string

The filename to of the zip file to check.

Returns

bool

true if the file contains a valid zip file.

IsZipFileWithExtract(string)

public bool IsZipFileWithExtract(string filename)

Parameters

filename string

The 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.