ILookup<TKey,TElement>.Contains(TKey) 方法

定义

确定指定的键是否位于 ILookup<TKey,TElement> 中。

public:
 bool Contains(TKey key);
public bool Contains (TKey key);
abstract member Contains : 'Key -> bool
Public Function Contains (key As TKey) As Boolean

参数

key
TKey

要在 ILookup<TKey,TElement> 中搜索的键。

返回

Boolean

如果 keyILookup<TKey,TElement> 中,则为 true;否则为 false

适用于