Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Contains Метод

Определение

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

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Contains;
bool ICollection<KeyValuePair<TKey,TValue>>.Contains(System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Function Contains (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains

Параметры

keyValuePair
KeyValuePair<TKey,TValue>

Структура KeyValuePair<TKey,TValue> , которая будет находиться в объекте ICollection<T>.

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

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

Реализации

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