Contains Method
Collapse the table of content
Expand the table of content

ILookup<TKey, TElement>.Contains Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft