SortedList<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.Contains Method
.NET Framework 4.5
Determines whether the ICollection<T> contains a specific element.
Namespace: System.Collections.Generic
Assembly: System (in System.dll)
bool ICollection<KeyValuePair<TKey, TValue>>.Contains(
KeyValuePair<TKey, TValue> keyValuePair
)
Parameters
- keyValuePair
- Type: System.Collections.Generic.KeyValuePair<TKey, TValue>
The KeyValuePair<TKey, TValue> to locate in the ICollection<T>.
Return Value
Type: System.Booleantrue if keyValuePair is found in the ICollection<T>; otherwise, false.
Implements
ICollection<T>.Contains(T)Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.