Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ZipArchive.MoveAsync Method

Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9147)

MoveAsync(String, String, Object)

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

Declaration
public Task MoveAsync(string fromPath, string toPath, object state = null)
Parameters
Type Name Description
String fromPath

Original path to a ZIP archive item to move or rename.

String toPath

New path to move or rename the ZIP archive item to.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException

The specified path is null.

ArgumentException

The specified path is empty or contains invalid characters. -or- Attempt to move or rename the root directory of the archive.

InvalidOperationException

Archive is not opened for writing.

ObjectDisposedException

Archive was already disposed.

PathTooLongException

New path is too long (longer than 65.535 characters).

IOException

An I/O error occurred.

ZipException

Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).

In This Article
  • MoveAsync(String, String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies