IDictionary<(Of <(<'TKey, TValue>)>)>..::..Add Method
Adds an element with the provided key and value to the IDictionary<(Of <(<'TKey, TValue>)>)>.
Namespace:
System.Collections.GenericAssembly: Bridge (in Bridge.dll)
Syntax
void Add( TKey key, TValue value )
Sub Add ( _ key As TKey, _ value As TValue _ )
void Add( TKey key, TValue value )
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | key is null. |
System..::..ArgumentException | An element with the same key already exists in the IDictionary<(Of <(<'TKey, TValue>)>)>. |
System..::..NotSupportedException | The IDictionary<(Of <(<'TKey, TValue>)>)> is read-only. |