ConcurrentDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>.ContainsKey 方法

定义

确定 ConcurrentDictionary<TKey,TValue> 是否包含指定的备用键。

public:
 bool ContainsKey(TAlternateKey key);
public bool ContainsKey (TAlternateKey key);
member this.ContainsKey : 'AlternateKey -> bool
Public Function ContainsKey (key As TAlternateKey) As Boolean

参数

key
TAlternateKey

要检查的备用键。

返回

如果键位于字典中,则 true;否则,false

例外

key null

适用于