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>键。

返回

true 如果 key 位于 , ILookup<TKey,TElement>则为 ;否则为 false

适用于