ConcurrentDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Add(TKey, TValue) Method

Definition

지정된 키와 값을 IDictionary<TKey,TValue>에 추가합니다.Adds the specified key and value to the IDictionary<TKey,TValue>.

 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

Parameters

key
TKey

추가할 요소의 키로 사용할 개체입니다.The object to use as the key of the element to add.

value
TValue

추가할 요소의 값으로 사용할 개체입니다.The object to use as the value of the element to add.

Implements

Exceptions

keynull입니다.key is null.

같은 키를 가진 요소가 이미 ConcurrentDictionary<TKey,TValue>에 있는 경우An element with the same key already exists in the ConcurrentDictionary<TKey,TValue>.

사전에 너무 많은 요소가 포함되어 있습니다.The dictionary contains too many elements.

Applies to

See also