UnitPortConnect Method

Connects an object to the port. For a material port it must be an object implementing the ICapeThermoMaterialObject interface, for Energy and Information ports it must be an object implementing the ICapeParameter interface.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
public void Connect(
	Object objectToConnect
)

Parameters

objectToConnect  Object
 

Implements

ICapeUnitPortConnect(Object)

Exceptions

ECapeUnknownThe error to be raised when other error(s), specified for this operation, are not suitable.
ECapeInvalidArgumentTo be used when an invalid argument value is passed, for example, an unrecognised Compound identifier or UNDEFINED for the props argument.

See Also