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

Definice

Určuje, zda obsahuje ConcurrentDictionary<TKey,TValue> zadaný klíč.

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

Parametry

key
TKey

Klíč, který se má najít v souboru ConcurrentDictionary<TKey,TValue>.

Návraty

true pokud obsahuje ConcurrentDictionary<TKey,TValue> prvek se zadaným klíčem, falsev opačném případě .

Implementuje

Výjimky

key je null.

Platí pro

Viz také