Deletes the current ZipItem from the ZIP archive.

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

Syntax

Visual Basic
Public Overrides Function Delete ( _
	mode As TraversalMode, _
	action As ArchiveSaveAction _
) As ArchiveOperationResult
C#
public override ArchiveOperationResult Delete(
	TraversalMode mode,
	ArchiveSaveAction action
)

Parameters

mode
Type: Rebex.IO..::..TraversalMode
Traversal mode.
action
Type: Rebex.IO.Compression..::..ArchiveSaveAction
Save action.

Return Value

Operation result.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionThe mode or action specified an invalid value.
System..::..InvalidOperationExceptionArchive is not opened for writing. -or- The item is already deleted.
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