Condividi tramite


DiskBasedResponseCache.GetAsync(String, CancellationToken) Method

Definition

Gets a value with the given key.

public System.Threading.Tasks.Task<byte[]?> GetAsync (string key, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Function GetAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())

Parameters

key
String

A string identifying the requested value.

cancellationToken
CancellationToken

Returns

Task<Byte[]>

The Task that represents the asynchronous operation, containing the located value or null.

Implements

Applies to