 | IPortsAdd Method |
Adds a new port.
Namespace:
EMInvent.InventSim.COMServer
Assembly:
InventSim (in InventSim.exe) Version: 5.1.12.6+develop
SyntaxIPort Add(
string name,
ISimObject face,
PortType type
)
Function Add (
name As String,
face As ISimObject,
type As PortType
) As IPort
Dim instance As IPorts
Dim name As String
Dim face As ISimObject
Dim type As PortType
Dim returnValue As IPort
returnValue = instance.Add(name, face,
type)
Parameters
- name
- Type: SystemString
Name of the port. - face
- Type: EMInvent.InventSim.COMServerISimObject
Face to which port will be assigned. - type
- Type: EMInvent.InventSim.Simulator.PortsPortType
Port type.
Return Value
Type:
IPortReference to the newly created port.
Remarks
See Also