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

ExceptionCondition
System..::..ArgumentNullExceptionThe specified path is null.
System..::..ArgumentExceptionThe specified path is empty.
System..::..ObjectDisposedExceptionArchive was already disposed.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also