IMemory.TryGetValue(String, 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.
Essayez d’obtenir une valeur d’un chemin donné, cela peut être un identifiant simple comme « a », ou un chemin combiné comme « a.b », « a.b[2] », « a.b[2].c », à l’intérieur de [] est garanti être un nombre int ou une chaîne.
public bool TryGetValue(string path, out object value);
abstract member TryGetValue : string * obj -> bool
Public Function TryGetValue (path As String, ByRef value As Object) As Boolean
Paramètres
- path
- String
chemin de mémoire.
- value
- Object
valeur résolue.
Retours
vrai si la mémoire contient un élément avec la clé spécifiée ; sinon, faux.