[]
        
(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)
Public Shared Function IsZipFile(fileName As String) As Boolean
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)
Public Shared Function IsZipFile(stream As Stream) As Boolean
Parameters
Type Name Description
Stream stream

Stream to test.

Returns
Type Description
bool

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