SqlServerCache.GetAsync Método
Definição
Sobrecargas
| GetAsync(String) | |
| GetAsync(String, CancellationToken) |
Obtém um valor com a chave fornecida.Gets a value with the given key. |
GetAsync(String)
public:
virtual System::Threading::Tasks::Task<cli::array <System::Byte> ^> ^ GetAsync(System::String ^ key);
public System.Threading.Tasks.Task<byte[]> GetAsync (string key);
abstract member GetAsync : string -> System.Threading.Tasks.Task<byte[]>
override this.GetAsync : string -> System.Threading.Tasks.Task<byte[]>
Public Function GetAsync (key As String) As Task(Of Byte())
Parâmetros
- key
- String
Retornos
Implementações
Aplica-se a
GetAsync(String, CancellationToken)
Obtém um valor com a chave fornecida.Gets a value with the given key.
public System.Threading.Tasks.Task<byte[]> GetAsync (string key, System.Threading.CancellationToken token = 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 token As CancellationToken = Nothing) As Task(Of Byte())
Parâmetros
- key
- String
Uma cadeia de caracteres que identifica o valor solicitado.A string identifying the requested value.
- token
- CancellationToken
Opcional.Optional. O CancellationToken usado para propagar notificações de que a operação deve ser cancelada.The CancellationToken used to propagate notifications that the operation should be canceled.
Retornos
O Task que representa a operação assíncrona que contém o valor localizado ou null.The Task that represents the asynchronous operation, containing the located value or null.