Deletes files and/or directories within the ZIP archive.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Function Delete ( _ set As FileSet, _ action As ArchiveSaveAction _ ) As ArchiveOperationResult |
C# |
---|
public ArchiveOperationResult Delete( FileSet set, ArchiveSaveAction action ) |
Parameters
- set
- Type: Rebex.IO..::..FileSet
A filtering set which specifies external (local) files and directories to be deleted.
- action
- Type: Rebex.IO.Compression..::..ArchiveSaveAction
Save action.
Return Value
Operation result.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | set is null. |
System..::..ArgumentException | Base path of the set contains invalid characters. |
System..::..InvalidOperationException | Archive is not opened for writing. |
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). |