MemoryStorage.DeleteAsync 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.
Overloads
| Name | Description |
|---|---|
| DeleteAsync(IReadOnlyList<String>, CancellationToken) | |
| DeleteAsync(String[], CancellationToken) |
Deletes storage items from storage. |
| DeleteAsync(IReadOnlyList<String>, StorageDeleteOptions, CancellationToken) |
DeleteAsync(IReadOnlyList<String>, CancellationToken)
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>>
override this.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>
- cancellationToken
- CancellationToken
Returns
Implements
Applies to
DeleteAsync(String[], CancellationToken)
Deletes storage items from storage.
public System.Threading.Tasks.Task DeleteAsync(string[] keys, System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAsync : string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteAsync (keys As String(), cancellationToken As CancellationToken) As Task
Parameters
- keys
- String[]
Keys for the IStoreItem objects 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.
Implements
See also
Applies to
DeleteAsync(IReadOnlyList<String>, StorageDeleteOptions, CancellationToken)
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>>
override this.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>
- options
- StorageDeleteOptions
- cancellationToken
- CancellationToken