SortedList<TKey, TValue>::ICollection<KeyValuePair<TKey, TValue>>::Contains Method (KeyValuePair<TKey, TValue>)

 

Determines whether the ICollection<T> contains a specific element.

Namespace:   System.Collections.Generic
Assembly:  System (in System.dll)

private:
virtual bool Contains(
	KeyValuePair<TKey, TValue> keyValuePair
) sealed = ICollection<KeyValuePair<TKey, TValue>>::Contains

Return Value

Type: System::Boolean

true if keyValuePair is found in the ICollection<T>; otherwise, false.

This method is an O(log n) operation, where n is Count.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: