Unit PortConnect 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)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public void Connect(
Object objectToConnect
)VB
Public Sub Connect (
objectToConnect As Object
)Parameters
- objectToConnect Object
Implements
ICapeUnitPortConnect(Object)Exceptions
| ECapeUnknown | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeInvalidArgument | To be used when an invalid argument value is passed, for example, an unrecognised Compound identifier or UNDEFINED for the props argument. |