Sage Modeling and Simulation Library

WeakHashtable..::..Add Method

Adds an element with the provided key and value to the IDictionary object.

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)

Syntax


public void Add(
	Object key,
	Object value
)

Parameters

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

Exceptions


ExceptionCondition
ArgumentExceptionAn element with the same key already exists in the IDictionary object.
ArgumentNullExceptionkey is null.
NotSupportedExceptionThe IDictionary is read-only.-or- The IDictionary has a fixed size.