Method MoveToAsync
MoveToAsync(string, CancellationToken)
Moves the file to a new file at the specified path, so that it is kept after the handler finishes. A store that keeps the file in a file system moves it, which copies nothing on the same volume, and other stores copy it there.
Declaration
public Task MoveToAsync(string destinationPath, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | destinationPath | The path of the new file, which must not exist. |
| CancellationToken | cancellationToken | A token that cancels the operation. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| IOException | The file at |