IMemoryCache.TryGetValue(Object, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’élément associé à cette clé (si présente).
public:
bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetValue (object key, out object? value);
abstract member TryGetValue : obj * obj -> bool
Public Function TryGetValue (key As Object, ByRef value As Object) As Boolean
Paramètres
- key
- Object
Objet qui identifie l’entrée demandée.
- value
- Object
Lorsque cette méthode retourne, contient la valeur ou null qui se trouve.
Retours
true si la clé a été trouvée.