[]
        
(Showing Draft Content)

C1.Zip.C1ZipFile.IsZipFile

IsZipFile Method

IsZipFile(string)

Tests whether a file is a valid zip file.

Declaration
public static bool IsZipFile(string fileName)
Parameters
Type Name Description
string fileName

Name of the file to test.

Returns
Type Description
bool

True if the file exists and is a valid zip file, false otherwise.

IsZipFile(Stream)

Tests whether a stream contains a valid zip file.

Declaration
public static bool IsZipFile(Stream stream)
Parameters
Type Name Description
Stream stream

Stream to test.

Returns
Type Description
bool

True if stream contains a valid zip file, false otherwise.