ConcurrentDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Add Methode

Definition

Fügt der Auflistung ein Element hinzu.

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Add;
void ICollection<KeyValuePair<TKey,TValue>>.Add(System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
Sub Add (keyValuePair As KeyValuePair(Of TKey, TValue)) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Add

Parameter

keyValuePair
KeyValuePair<TKey,TValue>

Der KeyValuePair<TKey,TValue> zum Wörterbuch hinzuzufügende Benutzer.

Implementiert

Ausnahmen

Das Key ist keyValuePairnull.

Das Dictionary<TKey,TValue> Enthält zu viele Elemente.

Ein Element mit demselben Schlüssel ist bereits in der Dictionary<TKey,TValue>.

Gilt für:

Weitere Informationen