MemoryCache.TryGetValue(Object, Object) Metoda

Definicja

Pobiera element skojarzony z tym kluczem, jeśli jest obecny.

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

Parametry

key
Object

Obiekt identyfikujący żądany wpis.

result
Object

Zwraca

true jeśli klucz został znaleziony.

Implementuje

Dotyczy