FileBackedDictionaryTKey, TValue, TKeyElem, TValueElemAdd(TKey, TValue) Method

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

Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.128 -- Release Build+2960d3f3619fdc53cad514a51817286dcfb19027
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

ArgumentNullExceptionkey is null.
ArgumentExceptionAn element with the same key already exists in the FileBackedDictionaryTKey, TValue.
NotSupportedExceptionThe FileBackedDictionaryTKey, TValue is read-only.

See Also