[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds an element with the provided key and value to the IDictionary<(Of TKey, TValue>).

Namespace: net.esper.compat
Assembly:   NEsper (in NEsper.dll)

Syntax

Visual Basic (Declaration)
Public Sub Add ( _
	key As TKey, _
	value As TValue _
)
C#
public void Add (
	TKey key,
	TValue value
)
Visual C++
public:
virtual void Add (
	TKey key, 
	TValue value
) sealed

Parameters

key
TKey type parameter of net.esper.compat.WeakDictionary<(Of TKey, TValue>).
The object to use as the key of the element to add.
value
TValue type parameter of net.esper.compat.WeakDictionary<(Of TKey, TValue>).
The object to use as the value of the element to add.

Exceptions

ExceptionCondition
System.NotSupportedExceptionThe IDictionary<(Of TKey, TValue>) is read-only.
System.ArgumentExceptionAn element with the same key already exists in the IDictionary<(Of TKey, TValue>).
System.ArgumentNullExceptionkey is null.