MemoryCache.TryGetValue(Object, Object) Méthode

Définition

Obtient l’élément associé à cette clé (si présente).

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

Paramètres

key
Object

Objet qui identifie l’entrée demandée.

result
Object

Retours

true si la clé a été trouvée.

Implémente

S’applique à