AdlsClient.RestoreDeletedItemsAsync(String, String, String, String, CancellationToken) Method

Definition

Asynchronously Restores trash entry Caution: Undeleting files is a best effort operation. There are no guarantees that a file can be restored once it is deleted. The use of this API is enabled via whitelisting. If your ADL account is not whitelisted, then using this api will throw Not immplemented exception. For further information and assistance please contact Microsoft support.

public virtual System.Threading.Tasks.Task RestoreDeletedItemsAsync (string pathOfFileToRestoreInTrash, string restoreDestination, string type, string restoreAction = "", System.Threading.CancellationToken cancelToken = default);
abstract member RestoreDeletedItemsAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RestoreDeletedItemsAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RestoreDeletedItemsAsync (pathOfFileToRestoreInTrash As String, restoreDestination As String, type As String, Optional restoreAction As String = "", Optional cancelToken As CancellationToken = Nothing) As Task

Parameters

pathOfFileToRestoreInTrash
System.String

Trash Directory path returned by enumeratedeleteditems

restoreDestination
System.String

Destination for restore

type
System.String

type of restore - file or directory

restoreAction
System.String

Action to take in case of destination conflict

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task

Applies to