Gets a value indicating whether the specified file is present in the ZIP archive.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
| Visual Basic |
|---|
Public Function FileExists ( _ archiveFilePath As String _ ) As Boolean |
| C# |
|---|
public bool FileExists( string archiveFilePath ) |
Parameters
- archiveFilePath
- Type: System..::..String
The path of the file to check.
Return Value
True if the file exists; false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The specified path is null. |
| System..::..ArgumentException | The specified path is empty. |
| System..::..ObjectDisposedException | Archive was already disposed. |
| Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation (see ProblemType for detailed information). |