Condividi tramite


JsonObject.ICollection<KeyValuePair<String,JsonValue>>.Contains Metodo

Definizione

Stabilisce se ICollection<T> contiene un valore specifico.

 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

Parametri

item
KeyValuePair<String,JsonValue>

Oggetto da individuare nella raccolta ICollection<T>.

Restituisce

true se item è presente in ICollection<T>; in caso contrario, false.

Implementazioni

Commenti

Nota

Lo System.Json spazio dei nomi è stato progettato per Silverlight, che non è più supportato. Per l'elaborazione System.Text.Json di JSON, è consigliabile usare le API nello spazio dei nomi.

Si applica a