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

適用於