IImmutableDictionary<TKey,TValue>.Contains Methode

Definition

Bestimmt, ob das unveränderliche Wörterbuch das angegebene Schlüssel-Wert-Paar enthält.

public:
 bool Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> pair);
public bool Contains (System.Collections.Generic.KeyValuePair<TKey,TValue> pair);
abstract member Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Contains (pair As KeyValuePair(Of TKey, TValue)) As Boolean

Parameter

pair
KeyValuePair<TKey,TValue>

Das Schlüssel-Wert-Paar, das gesucht werden soll.

Gibt zurück

true, wenn das angegebene Schlüssel-Wert-Paar im Wörterbuch gefunden wird, andernfalls false.

Gilt für: