AdlsClient.EnumerateDeletedItems 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.
Search trash under a account with hint and a starting point. This is a long running operation, and user is updated with progress periodically. 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.Collections.Generic.IEnumerable<Microsoft.Azure.DataLake.Store.TrashEntry> EnumerateDeletedItems (string hint, string listAfter, int numResults, IProgress<Microsoft.Azure.DataLake.Store.EnumerateDeletedItemsProgress> progressTracker, System.Threading.CancellationToken cancelToken = default);
abstract member EnumerateDeletedItems : string * string * int * IProgress<Microsoft.Azure.DataLake.Store.EnumerateDeletedItemsProgress> * System.Threading.CancellationToken -> seq<Microsoft.Azure.DataLake.Store.TrashEntry>
override this.EnumerateDeletedItems : string * string * int * IProgress<Microsoft.Azure.DataLake.Store.EnumerateDeletedItemsProgress> * System.Threading.CancellationToken -> seq<Microsoft.Azure.DataLake.Store.TrashEntry>
Public Overridable Function EnumerateDeletedItems (hint As String, listAfter As String, numResults As Integer, progressTracker As IProgress(Of EnumerateDeletedItemsProgress), Optional cancelToken As CancellationToken = Nothing) As IEnumerable(Of TrashEntry)
Parameters
- hint
- String
String to match
- listAfter
- String
Token returned by system in the previous API invocation
- numResults
- Int32
Search is executed until we find numResults or search completes. Maximum allowed value for this param is 4000. The number of returned entries could be more or less than numResults
- progressTracker
- IProgress<EnumerateDeletedItemsProgress>
Object to track progress of the task. Can be null
- cancelToken
- CancellationToken
CancellationToken to cancel the request
Returns
Applies to
Azure SDK for .NET