Table of Contents

Delegate SerialDataReceivedEventHandler

Namespace
System.IO.Ports
Assembly
System.IO.Ports.dll

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

public delegate void SerialDataReceivedEventHandler(object sender, SerialDataReceivedEventArgs e)

Parameters

sender object

The sender of the event, which is the SerialPort object.

e SerialDataReceivedEventArgs

A SerialDataReceivedEventArgs object that contains the event data.

Extension Methods

Constructors

SerialDataReceivedEventHandler(object, IntPtr)

public SerialDataReceivedEventHandler(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(object, SerialDataReceivedEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, SerialDataReceivedEventArgs e, AsyncCallback callback, object @object)

Parameters

sender object
e SerialDataReceivedEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(object, SerialDataReceivedEventArgs)

public virtual void Invoke(object sender, SerialDataReceivedEventArgs e)

Parameters

sender object
e SerialDataReceivedEventArgs