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
Exception | Condition |
---|---|
System..::..ArgumentNullException | The specified path is null. |
System..::..ArgumentException | The specified path is empty or contains invalid characters. -or- Attempt to move or rename the root directory of the archive. |
System..::..InvalidOperationException | Archive is not opened for writing. |
System..::..ObjectDisposedException | Archive was already disposed. |
System.IO..::..PathTooLongException | New path is too long (longer than 65.535 characters). |
System.IO..::..IOException | An I/O error occurred. |
Rebex.IO.Compression..::..ZipException | Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information). |