Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

.NET Framework 4.6 and 4.5

Determines whether the collection contains a specific value.

Namespace:  System.Collections.ObjectModel
Assemblies:   System.ObjectModel (in System.ObjectModel.dll)
  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.

.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:
© 2015 Microsoft