Partage via


JsonObject.Lookup(String) Méthode

Définition

Obtient la valeur JSON associée à la clé fournie, si une entrée avec cette clé existe.

public:
 virtual IJsonValue ^ Lookup(Platform::String ^ key) = IMap<Platform::String ^, IJsonValue ^>::Lookup;
IJsonValue Lookup(winrt::hstring const& key);
public IJsonValue Lookup(string key);
function lookup(key)
Public Function Lookup (key As String) As IJsonValue

Paramètres

key
String

Platform::String

winrt::hstring

Clé demandée.

Retours

Valeur, si un élément avec la clé spécifiée existe. Utilisez la méthode HasKey pour déterminer si la clé existe.

Implémente

S’applique à