ConcurrentDictionary<TKey,TValue>.ContainsKey(TKey) Methode

Definitie

Bepaalt of de ConcurrentDictionary<TKey,TValue> opgegeven sleutel bevat.

public:
 virtual bool ContainsKey(TKey key);
public bool ContainsKey(TKey key);
abstract member ContainsKey : 'Key -> bool
override this.ContainsKey : 'Key -> bool
Public Function ContainsKey (key As TKey) As Boolean

Parameters

key
TKey

De sleutel die moet worden gevonden in de ConcurrentDictionary<TKey,TValue>.

Retouren

trueals het ConcurrentDictionary<TKey,TValue> een element met de opgegeven sleutel bevat; anders. false

Implementeringen

Uitzonderingen

key is null.

Van toepassing op

Zie ook