Client. Restore Deleted Items(String, String, String, String, CancellationToken) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Trash Directory path returned by enumeratedeleteditems
Destination for restore
type of restore - file or directory
Action to take in case of destination conflict
CancellationToken to cancel the request