ZipArchive.DeleteFileAsync Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9313)
DeleteFileAsync(String, ArchiveSaveAction, Object)
Begins asynchronous DeleteFile operation. Deletes a file within the ZIP archive.
Declaration
public Task<ArchiveOperationResult> DeleteFileAsync(string archiveFilePath, ArchiveSaveAction action, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | archiveFilePath | Path to an archive file. |
| ArchiveSaveAction | action | Save action. |
| Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<ArchiveOperationResult> | Operation result. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The specified path is null. |
| ArgumentException | The specified path is empty. -or- Illegal use of wildcards in path. |
| InvalidOperationException | Archive is not opened for writing. -or- The specified path is not a file. |
| 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). |