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.156 -- Release Build+6a9f88f477f6aa18d5026c0c0fcc061b1aaed2d2
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