DeviceServerDataReceivedDelegate 委托 |
当接收到来自客户的数据信息时触发的对象,该数据可能来自tcp或是串口
The object that is triggered when receiving data information from the customer, the data may come from tcp or serial port
命名空间:
HslCommunication.Core.Device
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public delegate void DataReceivedDelegate(
Object sender,
PipeSession session,
byte[] data
)
Public Delegate Sub DataReceivedDelegate (
sender As Object,
session As PipeSession,
data As Byte()
)
public delegate void DataReceivedDelegate(
Object^ sender,
PipeSession^ session,
array<unsigned char>^ data
)
type DataReceivedDelegate =
delegate of
sender : Object *
session : PipeSession *
data : byte[] -> unit
参数
- sender
- 类型:SystemObject
触发的服务器对象 - session
- 类型:HslCommunication.Core.NetPipeSession
消息的来源对象 - data
- 类型:SystemByte
实际的数据信息
参见