ConcurrentDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Add Yöntem

Tanım

Bir öğeyi koleksiyona ekler.

 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

Parametreler

keyValuePair
KeyValuePair<TKey,TValue>

KeyValuePair<TKey,TValue> Sözlüğe eklenecek.

Uygulamalar

Özel durumlar

, KeykeyValuePair şeklindedir null.

Dictionary<TKey,TValue> çok fazla öğe içeriyor.

içinde aynı anahtara sahip bir öğe zaten var Dictionary<TKey,TValue>.

Şunlara uygulanır

Ayrıca bkz.