Sage Modeling and Simulation Library

ModelObjectDictionary..::..Add Method (Guid, IModelObject)

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

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

Syntax


public void Add(
	Guid key,
	IModelObject value
)

Parameters

key
Type: Guid
The Object to use as the key of the element to add.
value
Type: Highpoint.Sage.SimCore..::..IModelObject
The Object to use as the value of the element to add.

Exceptions


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