Delegate SerialDataReceivedEventHandler
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
objectThe sender of the event, which is the SerialPort object.
e
SerialDataReceivedEventArgsA SerialDataReceivedEventArgs object that contains the event data.
- Extension Methods
Constructors
SerialDataReceivedEventHandler(object, IntPtr)
public SerialDataReceivedEventHandler(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(object, SerialDataReceivedEventArgs, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(object sender, SerialDataReceivedEventArgs e, AsyncCallback callback, object @object)
Parameters
sender
objecte
SerialDataReceivedEventArgscallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Invoke(object, SerialDataReceivedEventArgs)
public virtual void Invoke(object sender, SerialDataReceivedEventArgs e)
Parameters
sender
objecte
SerialDataReceivedEventArgs