ISerialReceivingPluginOnSerialReceiving 方法
当串行端口接收到数据时触发的异步事件处理方法。
命名空间: TouchSocket.SerialPorts程序集: TouchSocket.SerialPorts (在 TouchSocket.SerialPorts.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
Task OnSerialReceiving(
ISerialPortSession client,
ByteBlockEventArgs e
)
Function OnSerialReceiving (
client As ISerialPortSession,
e As ByteBlockEventArgs
) As Task
abstract OnSerialReceiving :
client : ISerialPortSession *
e : ByteBlockEventArgs -> Task
- client ISerialPortSession
- 触发事件的串行端口会话对象。
- e ByteBlockEventArgs
- 包含接收数据的事件参数对象。
Task一个Task对象,代表异步操作的结果。