Deletes a file within the ZIP archive.

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Function DeleteFile ( _
	archiveFilePath As String _
) As ArchiveOperationResult
C#
public ArchiveOperationResult DeleteFile(
	string archiveFilePath
)

Parameters

archiveFilePath
Type: System..::..String
Path to an archive file.

Return Value

Operation result.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe specified path is null.
System..::..ArgumentExceptionThe specified path is empty. -or- Illegal use of wildcards in path.
System..::..InvalidOperationExceptionArchive is not opened for writing. -or- The specified path is not a file.
System..::..ObjectDisposedExceptionArchive was already disposed.
System.IO..::..IOExceptionAn I/O error occurred.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also