Deletes files and/or empty directories within the ZIP archive.
Namespace:
Rebex.IO.CompressionAssembly: Rebex.Zip (in Rebex.Zip.dll) Version: 1.0.4086.0
Syntax
| C# |
|---|
public ArchiveOperationResult Delete( string archivePathOrMask ) |
| Visual Basic (Declaration) |
|---|
Public Function Delete ( _ archivePathOrMask As String _ ) As ArchiveOperationResult |
| Visual C++ |
|---|
public: ArchiveOperationResult^ Delete( String^ archivePathOrMask ) |
Parameters
- archivePathOrMask
- Type: System..::.String
Path (with or without a mask) to an archive item(s).
Return Value
Operation result.
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. |
| System..::.ObjectDisposedException | Archive was already disposed. |
| System.IO..::.IOException | An I/O error occured. |
| Rebex.IO.Compression..::.ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |