Share via


AdlsClient.RestoreDeletedItemsAsync 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
String

Trash Directory path returned by enumeratedeleteditems

restoreDestination
String

Destination for restore

type
String

type of restore - file or directory

restoreAction
String

Action to take in case of destination conflict

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

Applies to