ZipArchive.DeleteFile Method
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)
DeleteFile(String)
Deletes a file within the ZIP archive.
Declaration
public ArchiveOperationResult DeleteFile(string archiveFilePath)
Parameters
Type | Name | Description |
---|---|---|
String | archiveFilePath | Path to an archive file. |
Returns
Type | Description |
---|---|
Archive |
Operation result. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty. -or- Illegal use of wildcards in path. |
Invalid |
Archive is not opened for writing. -or- The specified path is not a file. |
Object |
Archive was already disposed. |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |
DeleteFile(String, ArchiveSaveAction)
Deletes a file within the ZIP archive.
Declaration
public ArchiveOperationResult DeleteFile(string archiveFilePath, ArchiveSaveAction action)
Parameters
Type | Name | Description |
---|---|---|
String | archiveFilePath | Path to an archive file. |
Archive |
action | Save action. |
Returns
Type | Description |
---|---|
Archive |
Operation result. |
Exceptions
Type | Condition |
---|---|
Argument |
The specified path is null. |
Argument |
The specified path is empty. -or- Illegal use of wildcards in path. |
Invalid |
Archive is not opened for writing. -or- The specified path is not a file. |
Object |
Archive was already disposed. |
IOException | An I/O error occurred. |
Zip |
Cannot perform the requested operation, or the operation was canceled
(see Problem |