C# Class Crisis.Ionic.Zip.ComHelper

Datei anzeigen Open project: teeknofil/Crisis-Wordlist-Generator

Public Methods

Method Description
CheckZip ( string filename ) : bool

A wrapper for ZipFile.CheckZip(string)

CheckZipPassword ( string filename, string password ) : bool

A COM-friendly wrapper for the static method ZipFile.CheckZipPassword(string,string).

FixZipDirectory ( string filename ) : void

A wrapper for ZipFile.FixZipDirectory(string)

GetZipLibraryVersion ( ) : string

A wrapper for ZipFile.LibraryVersion

IsZipFile ( string filename ) : bool

A wrapper for ZipFile.IsZipFile(string)

IsZipFileWithExtract ( string filename ) : bool

A wrapper for ZipFile.IsZipFile(string, bool)

We cannot use "overloaded" Method names in COM interop. So, here, we use a unique name.

Method Details

CheckZip() public method

A wrapper for ZipFile.CheckZip(string)
public CheckZip ( string filename ) : bool
filename string The filename to of the zip file to check.
return bool

CheckZipPassword() public method

A COM-friendly wrapper for the static method ZipFile.CheckZipPassword(string,string).
public CheckZipPassword ( string filename, string password ) : bool
filename string The filename to of the zip file to check.
password string The password to check.
return bool

FixZipDirectory() public method

A wrapper for ZipFile.FixZipDirectory(string)
public FixZipDirectory ( string filename ) : void
filename string The filename to of the zip file to fix.
return void

GetZipLibraryVersion() public method

A wrapper for ZipFile.LibraryVersion
public GetZipLibraryVersion ( ) : string
return string

IsZipFile() public method

A wrapper for ZipFile.IsZipFile(string)
public IsZipFile ( string filename ) : bool
filename string The filename to of the zip file to check.
return bool

IsZipFileWithExtract() public method

A wrapper for ZipFile.IsZipFile(string, bool)
We cannot use "overloaded" Method names in COM interop. So, here, we use a unique name.
public IsZipFileWithExtract ( string filename ) : bool
filename string The filename to of the zip file to check.
return bool