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 ( _
	set As FileSet, _
	action As ArchiveSaveAction _
)
C#
public void DeleteAsync(
	FileSet set,
	ArchiveSaveAction action
)

Parameters

set
Type: Rebex.IO..::..FileSet
A filtering set which specifies external (local) files and directories to be deleted.
action
Type: Rebex.IO.Compression..::..ArchiveSaveAction
Save action.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionset is null.
System..::..ArgumentExceptionBase path of the set contains invalid characters.
System..::..InvalidOperationExceptionArchive is not opened for writing.
System..::..ObjectDisposedExceptionArchive was already disposed.
System.IO..::..IOExceptionAn I/O error occurred.
Rebex.IO.Compression..::..ZipExceptionCannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also