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.158 -- Release Build+f7106cda20384a326bb8a47ce83b28923b71589b
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