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

Definisi

Menentukan apakah ICollection<T> berisi nilai tertentu.

 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

Parameter

item
KeyValuePair<String,JsonValue>

Objek yang akan ditemukan di ICollection<T>.

Mengembalikan

true jika item ditemukan di ICollection<T>; jika tidak, false.

Penerapan

Keterangan

Catatan

Namespace System.Json dirancang untuk Silverlight, yang tidak lagi didukung. Untuk memproses JSON, sebaiknya gunakan API di namespace sebagai gantinya System.Text.Json .

Berlaku untuk