| Parameter | Description |
|---|---|
| type | The type to assign to the port. Must be one of the types the port was declared to support (see IInputPortBuilder.WithDataTypes / IOutputPortBuilder.WithDataTypes). |
bool
true if the type was applied; false if the port is not polymorphic or if type is not one of the port's supported types.
Changes the current IPort.DataType of a polymorphic port.
Use this method to programmatically drive the type selection of a polymorphic port (the same selection the user changes through the port's dropdown in the UI). This method has no effect on non-polymorphic ports.