SortedDictionary<(Of <(TKey, TValue>)>).ValueCollection.ICollection<(Of <(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 specified value.
Namespace: System.Collections.Generic
Assembly: System (in System.dll)
Syntax
Private Function Contains ( _
item As TValue _
) As Boolean Implements ICollection(Of TValue).Contains
bool ICollection<TValue>.Contains(
TValue item
)
Parameters
- item
Type: TValue
The object to locate in the ICollection<(Of <(T>)>).
Return Value
Type: System..::.Boolean
true if item is found in the ICollection<(Of <(T>)>); otherwise, false.
Implements
ICollection<(Of <(T>)>)..::.Contains(T)
Remarks
Implementations can vary in how they determine equality of objects; for example, List<(Of <(T>)>) uses Comparer<(Of <(T>)>)..::.Default, whereas SortedDictionary<(Of <(TKey, TValue>)>) allows the user to specify the IComparer<(Of <(T>)>) implementation to use for comparing keys.
This method is an O(n) operation, where n is Count.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0
See Also
Reference
SortedDictionary<(Of <(TKey, TValue>)>)..::.ValueCollection Class