DataCollection<TKey,TValue>.Add DataCollection<TKey,TValue>.Add DataCollection<TKey,TValue>.Add DataCollection<TKey,TValue>.Add Method

Definition

Overloads

Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>)

Adds the specified key and value to the dictionary.

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds the specified key and value to the dictionary.

Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>)

Adds the specified key and value to the dictionary.

public:
 void Add(System::Collections::Generic::KeyValuePair<TKey, TValue> item);
public void Add (System.Collections.Generic.KeyValuePair<TKey,TValue> item);
member this.Add : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
Public Sub Add (item As KeyValuePair(Of TKey, TValue))

Parameters

item
KeyValuePair<TKey,TValue>

Type: KeyValuePair<TKey, TValue>. The key and value to add.

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds the specified key and value to the dictionary.

public:
 void Add(TKey key, TValue value);
public void Add (TKey key, TValue value);
member this.Add : 'Key * 'Value -> unit
Public Sub Add (key As TKey, value As TValue)

Parameters

key
TKey TKey TKey TKey

Type: TKey. The key of the element to add.

value
TValue TValue TValue TValue

Type: TValue. The value of the element to add.

Applies to