ReadOnlyDictionary<TKey, TValue>.KeyCollection.ICollection<TKey>.Contains Method

.NET Framework (current version)

Determines whether the collection contains a specific value.

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

bool ICollection<TKey>.Contains(
	TKey item
)

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<T>.Contains(T)

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

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show: