Langue

IMemory.TryGetValue(String, Object) Méthode

Définition

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.

S’applique à