Sprog

IStorageV2.ReadAsync(IReadOnlyList<String>, CancellationToken) Method

Definition

Reads items from storage and returns an explicit result for each requested key.

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

Parameters

keys
IReadOnlyList<String>

The keys to read.

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