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
)
Protected Overridable Function ExtraOnClose (
sp As SerialPort
) As OperateResult
protected:
virtual OperateResult^ ExtraOnClose(
SerialPort^ sp
)
abstract ExtraOnClose :
sp : SerialPort -> OperateResult
override ExtraOnClose :
sp : SerialPort -> OperateResult
参数
- sp
- 类型:System.IO.PortsSerialPort
[缺少 "M:HslCommunication.Serial.SerialBase.ExtraOnClose(System.IO.Ports.SerialPort)" 的 <param name="sp"/> 文档]
返回值
类型:
OperateResult当断开连接时额外的操作结果
示例
目前暂无相关的示例,组件支持的协议都不用实现这个方法。
参见