JsonObject.ICollection<KeyValuePair<String,JsonValue>>.Contains Метод

Определение

Определяет, содержит ли коллекция ICollection<T> указанное значение.

 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

Параметры

item
KeyValuePair<String,JsonValue>

Объект для поиска в ICollection<T>.

Возвращаемое значение

Значение true, если параметр item найден в коллекции ICollection<T>; в противном случае — значение false.

Реализации

Комментарии

Примечание

Пространство System.Json имен было разработано для Silverlight, который больше не поддерживается. Для обработки JSON рекомендуется использовать API в System.Text.Json пространстве имен.

Применяется к