IsZipFile Method (fileName)

DotNetZip

Ionic Zip Library v1.9.1.6 IsZipFile Method (fileName)
ReferenceIonic.ZipZipFileIsZipFile(String)
Checks the given file to see if it appears to be a valid zip file.
Declaration Syntax
C# Visual Basic Visual C++
public static bool IsZipFile(
	string fileName
)
Public Shared Function IsZipFile ( _
	fileName As String _
) As Boolean
public:
static bool IsZipFile(
	String^ fileName
)
Parameters
fileName (String)
The file to check.
Return Value
true if the file appears to be a zip file.
Remarks

Calling this method is equivalent to calling IsZipFile(String, Boolean) with the testExtract parameter set to false.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)