Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Adds an element with the provided key and value to the dictionary.

Namespace: Tangosol.Run.Xml
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

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..::..ArgumentException Key is not string, or it is not a valid attribute name, or value is not IXmlValue.
System..::..InvalidOperationException Parent SimpleElement is not mutable.

See Also