Click or drag to resize

FileBackedDictionaryTKey, TValueAdd(TKey, TValue) Method

Adds an element with the provided key and value to the FileBackedDictionaryTKey, TValue.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.313-beta+5fa9ed2a8819cbb219f1e178bdad6a8d23dec2ce
Syntax
public void Add(
	TKey key,
	TValue value
)
View Source

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