ICollection(TValue).Contains Method

ReadOnlyDictionary<TKey, TValue>.ValueCollection.ICollection<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 collection contains a specific value.

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

bool ICollection<TValue>.Contains(
	TValue item
)

Parameters

item
Type: TValue
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>.ValueCollection instance is cast to an ICollection<T> interface.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft