ZylSerialPort.NET

DataEventHandler Delegate

Represents the method that will handle the Sent or Received event of the serial port.

[Visual Basic]
Public Delegate Sub DataEventHandler( _
   ByVal Object As Object, _
   ByVal DataEventArgs As DataEventArgs _
)
[C#]
public delegate void DataEventHandler(
   Object sender,
   DataEventArgs e
);

Parameters

Object
The source of the event.
DataEventArgs
A DataEventArgs that contains the event data.

Remarks

When you create a DataEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Requirements

Namespace: ZylSerialPort

Assembly: ZylSerialPort (in ZylSerialPort.dll)

See Also

ZylSerialPort Namespace