一款简单易用的基础网络通讯组件库。

SerialOperationResult 结构

串行操作结果的结构体。 用于封装一次串行操作(如读取)的结果,包括传输的字节数和操作类型。

Definition

命名空间: TouchSocket.SerialPorts
程序集: TouchSocket.SerialPorts (在 TouchSocket.SerialPorts.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public readonly struct SerialOperationResult
Inheritance
Object    ValueType    SerialOperationResult

构造函数

SerialOperationResult 初始化SerialOperationResult结构体的实例。

属性

BytesTransferred 已传输的字节数。
EventType 串行数据事件类型。

方法

EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见