[]
Tests whether a file is a valid zip file.
public static bool IsZipFile(string fileName)
Public Shared Function IsZipFile(fileName As String) As Boolean
| Type | Name | Description |
|---|---|---|
| string | fileName | Name of the file to test. |
| Type | Description |
|---|---|
| bool | True if the file exists and is a valid zip file, false otherwise. |
Tests whether a stream contains a valid zip file.
public static bool IsZipFile(Stream stream)
Public Shared Function IsZipFile(stream As Stream) As Boolean
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to test. |
| Type | Description |
|---|---|
| bool | True if |