点击或拖拽改变大小

SerialBaseExtraOnClose 方法

根据实际的协议选择是否重写本方法,有些协议在断开连接之前,需要发送一些报文来关闭当前的网络通道
Select whether to rewrite this method according to the actual protocol. Some protocols need to send some packets to close the current network channel before disconnecting.

命名空间:  HslCommunication.Serial
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
protected virtual OperateResult ExtraOnClose(
	SerialPort sp
)

参数

sp
类型:System.IO.PortsSerialPort

[缺少 "M:HslCommunication.Serial.SerialBase.ExtraOnClose(System.IO.Ports.SerialPort)" 的 <param name="sp"/> 文档]

返回值

类型:OperateResult
当断开连接时额外的操作结果
示例
目前暂无相关的示例,组件支持的协议都不用实现这个方法。
参见