Begins asynchronous DeleteFile operation.
Deletes a file within the ZIP archive.
Namespace:
Rebex.IO.Compression
Assembly:
Rebex.Zip (in Rebex.Zip.dll)
Syntax
Visual Basic |
---|
Public Sub DeleteFileAsync ( _ archiveFilePath As String, _ action As ArchiveSaveAction _ ) |
C# |
---|
public void DeleteFileAsync( string archiveFilePath, ArchiveSaveAction action ) |
Parameters
- archiveFilePath
- Type: System..::..String
Path to an archive file.
- 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. |
System..::..InvalidOperationException | Archive is not opened for writing. -or- The specified path is not a file. |
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). |