SortedList(Of TKey, TValue).ICollection(Of KeyValuePair(Of TKey, TValue)).Contains Method (KeyValuePair(Of TKey, TValue))

 

Determines whether the ICollection(Of T) contains a specific element.

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

Private Function Contains (
	keyValuePair As KeyValuePair(Of TKey, TValue)
) As Boolean
	Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains

Return Value

Type: System.Boolean

true if keyValuePair is found in the ICollection(Of 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: