ZipItem.Delete Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9083)
Delete(TraversalMode, ArchiveSaveAction)
Deletes the current ZipItem from the ZIP archive.
Declaration
public override ArchiveOperationResult Delete(TraversalMode mode, ArchiveSaveAction action)
Parameters
Type | Name | Description |
---|---|---|
TraversalMode | mode | Traversal mode. |
ArchiveSaveAction | action | Save action. |
Returns
Type | Description |
---|---|
ArchiveOperationResult | Operation result. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The |
InvalidOperationException | Archive is not opened for writing. -or- The item is already deleted. |
ObjectDisposedException | Archive was already disposed. |
IOException | An I/O error occurred. |
ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |
Delete()
Deletes the current file or empty directory item from the archive. Inherited from ArchiveItem.
Declaration
public virtual ArchiveOperationResult Delete()
Returns
Type | Description |
---|---|
ArchiveOperationResult | Operation result. |
Delete(ArchiveSaveAction)
Deletes the current file or empty directory item from the archive. Inherited from ArchiveItem.
Declaration
public virtual ArchiveOperationResult Delete(ArchiveSaveAction action)
Parameters
Type | Name | Description |
---|---|---|
ArchiveSaveAction | action | Save action. |
Returns
Type | Description |
---|---|
ArchiveOperationResult | Operation result. |