Sprog

IStorageV2.DeleteAsync Method

Definition

Overloads

Name Description
DeleteAsync(IReadOnlyList<String>, CancellationToken)

Deletes items from storage and returns an explicit result for each requested delete.

DeleteAsync(IReadOnlyList<String>, StorageDeleteOptions, CancellationToken)

Deletes items from storage and returns an explicit result for each requested delete.

DeleteAsync(IReadOnlyList<String>, CancellationToken)

Deletes items from storage and returns an explicit result for each requested delete.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Agents.Storage.StorageDeleteResult>> DeleteAsync(System.Collections.Generic.IReadOnlyList<string> keys, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Agents.Storage.StorageDeleteResult>>
Public Function DeleteAsync (keys As IReadOnlyList(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyDictionary(Of String, StorageDeleteResult))

Parameters

keys
IReadOnlyList<String>

The keys to delete.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Applies to

DeleteAsync(IReadOnlyList<String>, StorageDeleteOptions, CancellationToken)

Deletes items from storage and returns an explicit result for each requested delete.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Agents.Storage.StorageDeleteResult>> DeleteAsync(System.Collections.Generic.IReadOnlyList<string> keys, Microsoft.Agents.Storage.StorageDeleteOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : System.Collections.Generic.IReadOnlyList<string> * Microsoft.Agents.Storage.StorageDeleteOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Agents.Storage.StorageDeleteResult>>
Public Function DeleteAsync (keys As IReadOnlyList(Of String), options As StorageDeleteOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyDictionary(Of String, StorageDeleteResult))

Parameters

keys
IReadOnlyList<String>

The keys to delete.

options
StorageDeleteOptions

Optional settings for the delete operation.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Applies to