DictionaryBaseTKey, TValueAdd(TKey, TValue) Method |
Adds a element with the provided key and value to the ICollectionT.
Namespace: SautinSoft.DocumentAssembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.7.18
Syntax public void Add(
TKey key,
TValue value
)
Public Sub Add (
key As TKey,
value As TValue
)
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
IDictionaryTKey, TValueAdd(TKey, TValue)Exceptions Exception | Condition |
---|
ArgumentNullException | key or value is null. |
ArgumentException | An element with the same key already exists in the IDictionaryTKey, TValue. |
NotSupportedException | The IDictionaryTKey, TValue is read-only. |
See Also