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é s’il est présent.
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 identifiant l’entrée demandée.
- value
- Object
Valeur située ou null.
Retours
True si la clé a été trouvée.