Share via


IStorage.ReadAsync Method

Definition

Overloads

ReadAsync(String[], CancellationToken)

Reads storage items from storage.

ReadAsync<TStoreItem>(String[], CancellationToken)

Reads storage items from storage.

ReadAsync(String[], CancellationToken)

Reads storage items from storage.

public System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string,object>> ReadAsync(string[] keys, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadAsync : string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, obj>>
Public Function ReadAsync (keys As String(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDictionary(Of String, Object))

Parameters

keys
String[]

keys of the IStoreItem objects 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.

Remarks

If the activities are successfully sent, the task result contains the items read, indexed by key.

See also

Applies to

ReadAsync<TStoreItem>(String[], CancellationToken)

Reads storage items from storage.

public System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string,TStoreItem>> ReadAsync<TStoreItem>(string[] keys, System.Threading.CancellationToken cancellationToken = default) where TStoreItem : class;
abstract member ReadAsync : string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, 'StoreItem>> (requires 'StoreItem : null)
Public Function ReadAsync(Of TStoreItem As Class) (keys As String(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDictionary(Of String, TStoreItem))

Type Parameters

TStoreItem

The type of item to get from storage.

Parameters

keys
String[]

keys of the IStoreItem objects to read.

cancellationToken
CancellationToken

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

Returns

Task<IDictionary<String,TStoreItem>>

A task that represents the work queued to execute.

Remarks

If the activities are successfully sent, the task result contains the items read, indexed by key.

Applies to