Udostępnij za pośrednictwem


SortedDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Add Metoda

Definicja

Dodaje element do elementu ICollection<T>.

 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

Parametry

keyValuePair
KeyValuePair<TKey,TValue>

Struktura KeyValuePair<TKey,TValue> do dodania do elementu ICollection<T>.

Implementuje

Wyjątki

keyValuePair to null.

Element o tym samym kluczu już istnieje w pliku SortedDictionary<TKey,TValue>.

Dotyczy