Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
SortedDictionary..::.Add Method
SortedDictionary Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Adds an element with the provided key and value to the IDictionary object.

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

# Syntax

C#
    public override 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

Exception | Condition
--- | ---
System..::.ArgumentException | An element with the same key already exists in the IDictionary object.
System..::.NotSupportedException | The IDictionary is read-only. -or- The IDictionary has a fixed size.

# See Also

SortedDictionary Class
Tangosol.Util.Collections Namespace