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

ReadOnlyDictionary(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 dictionary contains a specific value.

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

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

Parameters

item
Type: System.Collections.Generic.KeyValuePair(Of TKey, TValue)
The object to locate in the dictionary.

Return Value

Type: System.Boolean
true if item is found in the dictionary; 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) instance is cast to an ICollection(Of T) interface.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft