ICollection(TKey).Contains Method

ReadOnlyDictionary(Of TKey, TValue).KeyCollection.ICollection(Of TKey).Contains Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether the collection contains a specific value.

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

'Declaration
Private Function Contains ( _
	item As TKey _
) As Boolean Implements ICollection(Of TKey).Contains

Parameters

item
Type: TKey
The object to locate in the collection.

Return Value

Type: System.Boolean
true if item is found in the collection; otherwise, false.

Implements

ICollection(Of T).Contains(T)

This member is an explicit interface member implementation. It can be used only when the ReadOnlyDictionary(Of TKey, TValue).KeyCollection instance is cast to an ICollection(Of T) interface.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft