SortedDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Add 메서드

정의

에 항목을 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

매개 변수

keyValuePair
KeyValuePair<TKey,TValue>

KeyValuePair<TKey,TValue> 추가할 구조체입니다 ICollection<T>.

구현

예외

keyValuePairnull입니다.

키가 같은 요소가 이미 있습니다 SortedDictionary<TKey,TValue>.

적용 대상