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.137 -- Release Build+b90947bdc517a875647d9003b61f08e3db816b33
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