IUnit Port EventsPort Disconnected Method
Occurs when the user disconnets a object from a unit port.
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#
void PortDisconnected(
UnitPort sender,
PortDisconnectedEventArgs args
)VB
Sub PortDisconnected (
sender As UnitPort,
args As PortDisconnectedEventArgs
)Parameters
- sender UnitPort
- The CapeUnitPort that raised the event.
- args PortDisconnectedEventArgs
- A ParameterValueChangedEventArgs that contains information about the event.
Remarks
Raising an event invokes the event handler through a delegate.
The OnPortDisconnected method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors:
When overriding OnPortDisconnected in a derived class, be sure to call the base class's OnPortDisconnected method so that registered delegates receive the event.