ZylSerialPort.NET

SerialPort.OnLineStatusChanged Method 

Raises the LineStatusChanged event.

[Visual Basic]
Overridable Protected Sub OnLineStatusChanged( _
   ByVal LineStatusEventArgs As LineStatusEventArgs _
)
[C#]
protected virtual void OnLineStatusChanged(
   LineStatusEventArgs e
);

Parameters

LineStatusEventArgs
A LineStatusEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. The OnLineStatusChanged 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 OnLineStatusChanged in a derived class, be sure to call the base class's OnLineStatusChanged method so that registered delegates receive the event.

See Also

SerialPort Class | ZylSerialPort Namespace