JsonObject.ICollection<KeyValuePair<String,JsonValue>>.Contains Méthode

Définition

Détermine si ICollection<T> contient une valeur spécifique.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Json.JsonValue>>.Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^>>::Contains;
bool ICollection<KeyValuePair<string,JsonValue>>.Contains (System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Json.JsonValue>>.Contains : System.Collections.Generic.KeyValuePair<string, System.Json.JsonValue> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Json.JsonValue>>.Contains : System.Collections.Generic.KeyValuePair<string, System.Json.JsonValue> -> bool
Function Contains (item As KeyValuePair(Of String, JsonValue)) As Boolean Implements ICollection(Of KeyValuePair(Of String, JsonValue)).Contains

Paramètres

item
KeyValuePair<String,JsonValue>

Objet à rechercher dans ICollection<T>.

Retours

true si item existe dans ICollection<T> ; sinon, false.

Implémente

Remarques

Notes

L’espace System.Json de noms a été conçu pour Silverlight, qui n’est plus pris en charge. Pour traiter JSON, nous vous recommandons d’utiliser des API dans l’espace de noms à la System.Text.Json place.

S’applique à