Share via


SerialDataReceivedEventHandler Delegate

Represents the method that will handle the DataReceived event of a SerialPort object.

Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public delegate void SerialDataReceivedEventHandler (
         Objectsender,
         SerialDataReceivedEventArgse
)

Parameters

  • sender
    The sender of the event, which is the SerialPort object.
  • e
    A SerialDataReceivedEventArgs object that contains the event data.

Remarks

When you create a SerialDataReceivedEventHandler 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. For more information about event-handler delegates, see Events and Delegates.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

System.IO.Ports Namespace