ILookup<TKey, TElement>.Contains Method (TKey)

 

Determines whether a specified key exists in the ILookup<TKey, TElement>.

Namespace:   System.Linq
Assembly:  System.Core (in System.Core.dll)

bool Contains(
	TKey key
)

Parameters

key
Type: TKey

The key to search for in the ILookup<TKey, TElement>.

Return Value

Type: System.Boolean

true if key is in the ILookup<TKey, TElement>; otherwise, false.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: