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
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | The mode or action specified an invalid value. |
System..::..InvalidOperationException | Archive is not opened for writing. -or- The item is already deleted. |
System..::..ObjectDisposedException | Archive was already disposed. |
System.IO..::..IOException | An I/O error occurred. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |