Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft