Share via


AdlsClient.RestoreDeletedItems Method

Definition

Synchronously 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 void RestoreDeletedItems (string pathOfFileToRestoreInTrash, string restoreDestination, string type, string restoreAction = "", System.Threading.CancellationToken cancelToken = default);
abstract member RestoreDeletedItems : string * string * string * string * System.Threading.CancellationToken -> unit
override this.RestoreDeletedItems : string * string * string * string * System.Threading.CancellationToken -> unit
Public Overridable Sub RestoreDeletedItems (pathOfFileToRestoreInTrash As String, restoreDestination As String, type As String, Optional restoreAction As String = "", Optional cancelToken As CancellationToken = Nothing)

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

Applies to