SortedDictionary(Of TKey, TValue).ICollection(Of KeyValuePair(Of TKey, TValue)).Contains Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the ICollection(Of T) contains a specific key and value.
Assembly: System (in System.dll)
'Declaration Private Function Contains ( _ keyValuePair As KeyValuePair(Of TKey, TValue) _ ) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains
Parameters
- keyValuePair
- Type: System.Collections.Generic.KeyValuePair(Of TKey, TValue)
The KeyValuePair(Of TKey, TValue) structure to locate in the ICollection(Of T).
Return Value
Type: System.Booleantrue if keyValuePair is found in the ICollection(Of T); otherwise, false.
Implements
ICollection(Of T).Contains(T)This method determines equality by first using the Comparer property for the key and then using EqualityComparer(Of T).Default for the value.
This method is an O(log n) operation.
Show: