Adds an element with the provided key and value to the IDictionaryTKey, TValue.
Namespace: Spotfire.Dxp.Framework.DocumentModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 70.0.21819.5008 (70.0.21819.5008)
Syntax
C#
public void Add( TKey key, TValue value )
Parameters
- key
- Type: TKey
The object to use as the key of the element to add. - value
- Type: TValue
The object to use as the value of the element to add.
Implements
IDictionaryTKey, TValueAdd(TKey, TValue)Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | key is . |
| ArgumentException | An element with the same key already exists in the IDictionaryTKey, TValue. |
| NotSupportedException | The IDictionaryTKey, TValue is read-only. |
Version Information
Supported in: 14.8, 14.7, 14.6, 14.5, 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also