点击或拖拽改变大小

BinaryCommunicationGetLogTextFromBinary 方法

获取当前的报文进行日志记录的时候,是否使用二进制的格式记录,默认返回 LogMsgFormatBinary,重写可以根据session对象分别返回不同记录模式
Whether to log the current packet in binary format, the default return is LogMsgFormatBinary. If you want to override it, different recording modes can be returned according to session

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
protected virtual string GetLogTextFromBinary(
	PipeSession session,
	byte[] content
)

参数

session
类型:HslCommunication.Core.NetPipeSession
会话对象
content
类型:SystemByte
等待记录的字节消息内容

返回值

类型:String
是否二进制记录报文格式
参见