ImmutableSortedDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Add 메서드

정의

제공한 키와 값을 가진 요소를 제네릭 사전에 추가합니다.

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

매개 변수

key
TKey

추가할 요소의 키로 사용할 개체입니다.

value
TValue

추가할 요소의 값으로 사용할 개체입니다.

구현

예외

key이(가) null인 경우

같은 키를 가진 요소가 이미 IDictionary<TKey,TValue>에 있는 경우

IDictionary<TKey,TValue>이 읽기 전용인 경우

적용 대상