Core.RestoreDeletedItemsAsync Method
Definition
Important
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.
Restore a stream or directory from trash to user space. This is a synchronous operation. Not threadsafe when Restore is called for same path from different threads. 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 static System.Threading.Tasks.Task RestoreDeletedItemsAsync (string restoreToken, string restoreDestination, string type, string restoreAction, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default);
static member RestoreDeletedItemsAsync : string * string * string * string * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function RestoreDeletedItemsAsync (restoreToken As String, restoreDestination As String, type As String, restoreAction As String, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task
Parameters
- restoreToken
- String
restore token of the entry to be restored. This is the trash directory path in enumeratedeleteditems response
- restoreDestination
- String
Path to which the entry should be restored
- type
- String
Type of the entry which is being restored
- restoreAction
- String
Action to take during destination name conflicts - overwrite or copy
- client
- AdlsClient
ADLS Client
- req
- RequestOptions
Options to change behavior of the Http request
- resp
- OperationResponse
Stores the response/ouput of the Http request
- cancelToken
- CancellationToken
Returns
Applies to
Azure SDK for .NET