MemoryCache.TryGetValue(Object, Object) Método

Definição

Obtém o item associado a essa chave, se presente.

public:
 virtual bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Object ^ % result);
public bool TryGetValue (object key, out object result);
public bool TryGetValue (object key, out object? result);
abstract member TryGetValue : obj * obj -> bool
override this.TryGetValue : obj * obj -> bool
Public Function TryGetValue (key As Object, ByRef result As Object) As Boolean

Parâmetros

key
Object

Um objeto que identifica a entrada solicitada.

result
Object

Retornos

true se a chave foi encontrada.

Implementações

Aplica-se a