ICollection<(Of <(T>)>).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 value.

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


Function Contains ( _
    item As T _
) As Boolean
bool Contains(
    T item


Return Value

Type: System..::.Boolean
true if item is found in the ICollection<(Of <(T>)>); otherwise, false.


Implementations can vary in how they determine equality of objects; for example, List<(Of <(T>)>) uses Comparer<(Of <(T>)>)..::.Default, whereas Dictionary<(Of <(TKey, TValue>)>) allows the user to specify the IComparer<(Of <(T>)>) implementation to use for comparing keys.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


ICollection<(Of <(T>)>) Interface

System.Collections.Generic Namespace