Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Adds an element with the provided key and value to the dictionary.

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 3.7.1.23 (3.7.1.23)

Syntax

C#
public virtual void Add(
	Object key,
	Object value
)

Parameters

key
Type: System..::.Object
The object to use as the key of the element to add.
value
Type: System..::.Object
The object to use as the value of the element to add.

Implements

IDictionary..::.Add(Object, Object)

Exceptions

ExceptionCondition
System..::.ArgumentException An element with the same key already exists in the dictionary.
System..::.ArgumentNullException Key is null.
System..::.NotSupportedException The dictionary is read-only or the dictionary has a fixed size.

See Also