Dictionary<(Of <(<'TKey1, TKey2, TValue>)>)>..::..Add Method (TKey1, TKey2, TValue)

Adds an element with the provided key and value to the [IDictionary{TKey,TValue}].

Namespace:  Tortuga.Anchor.Collections
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public void Add(
	TKey1 key1,
	TKey2 key2,
	TValue value
)
Public Sub Add ( _
	key1 As TKey1, _
	key2 As TKey2, _
	value As TValue _
)

Parameters

key1
Type: TKey1
The first key.
key2
Type: TKey2
The second key.
value
Type: TValue
The object to use as the value of the element to add.

Exceptions


ExceptionCondition
[ArgumentException]An element with the same key already exists in the [IDictionary{TKey,TValue}].