Click or drag to resize

DictionaryBaseTKey, TValueAdd(TKey, TValue) Method

Adds a element with the provided key and value to the ICollectionT.

Namespace: SautinSoft.Document
Assembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.4.24
Syntax
public void Add(
	TKey key,
	TValue value
)

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
ExceptionCondition
ArgumentNullExceptionkey or value is null.
ArgumentExceptionAn element with the same key already exists in the IDictionaryTKey, TValue.
NotSupportedExceptionThe IDictionaryTKey, TValue is read-only.
See Also