Wire.ConnectTo
Method
Description:
Connects the wire to other elements.
Connects the wire to other elements.
Parameters
Parameter | Type | Description |
---|---|---|
startConnectorTo | Connector | The connector that the start connector of the wire connects to. |
endConnectorTo | Connector | The connector that the end connector of the wire connects to. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | startConnectorTo cannot be connected to a wire, as it is not an electrical connector. -or- endConnectorTo cannot be connected to a wire, as it is not an electrical connector. -or- startConnectorTo or/and endConnectorTo cannot be connected to a wire, as wire can't connect both connectors to same wire or same connector. |
InvalidOperationException | Cannot connect the wire to the start connector or the end connector. |