Begins asynchronous Move operation. Moves or renames an archive item (file or directory).

Namespace:  Rebex.IO.Compression
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Sub MoveAsync ( _
	fromPath As String, _
	toPath As String _
)
C#
public void MoveAsync(
	string fromPath,
	string toPath
)

Parameters

fromPath
Type: System..::..String
Original path to a ZIP archive item to move or rename.
toPath
Type: System..::..String
New path to move or rename the ZIP archive item to.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe specified path is null.
System..::..ArgumentExceptionThe specified path is empty or contains invalid characters. -or- Attempt to move or rename the root directory of the archive.
System..::..InvalidOperationExceptionArchive is not opened for writing.
System..::..ObjectDisposedExceptionArchive was already disposed.
System.IO..::..PathTooLongExceptionNew path is too long (longer than 65.535 characters).
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