Begins asynchronous Delete operation.
Deletes files and/or directories within the ZIP archive.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Sub DeleteAsync ( _ archivePathOrMask As String, _ mode As TraversalMode, _ action As ArchiveSaveAction _ ) |
C# |
---|
public void DeleteAsync( string archivePathOrMask, TraversalMode mode, ArchiveSaveAction action ) |
Parameters
- archivePathOrMask
- Type: System..::..String
Path (with or without a mask) to an archive item(s).
- mode
- Type: Rebex.IO..::..TraversalMode
Traversal mode.
- action
- Type: Rebex.IO.Compression..::..ArchiveSaveAction
Save action.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The specified path is null. |
System..::..ArgumentException | The specified path is empty. -or- Illegal use of wildcards in path. -or- Ambiguous usage of path and mode. |
System..::..ArgumentOutOfRangeException | The mode or action specified an invalid value. |
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). |