点击或拖拽改变大小

MqttClientApplicationMessage 类

来自客户端的一次消息的内容,当前类主要是在MQTT的服务端进行使用
The content of a message from the client. The current class is mainly used on the MQTT server
继承层次
SystemObject
  HslCommunication.MQTTMqttApplicationMessage
    HslCommunication.MQTTMqttClientApplicationMessage

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class MqttClientApplicationMessage : MqttApplicationMessage

MqttClientApplicationMessage 类型公开以下成员。

构造函数
  名称说明
公共方法MqttClientApplicationMessage
实例化一个默认的对象
Instantiate a default object
Top
属性
  名称说明
公共属性ClientId
客户端的Id信息
Client Id information
公共属性CreateTime
当前消息的生成时间
The generation time of the current message
公共属性IsCancelPublish
获取或设置当前的消息是否取消发布,默认False,也就是发布出去
Get or set whether the current message is unpublished, the default is False, which means it is published
公共属性MsgID
当前消息的ID信息,在Qos大于0的时候,才是有值的
公共属性Payload
有效载荷包含将被发布的应用消息。数据的内容和格式是应用特定的。
The payload contains application messages to be published. The content and format of the data is application specific.
(继承自 MqttApplicationMessage。)
公共属性QualityOfServiceLevel
这个字段表示应用消息分发的服务质量等级保证。分为,最多一次,最少一次,正好一次,只发不推送。
This field indicates the quality of service level guarantee for application message distribution. Divided into, at most once, at least once, exactly once
(继承自 MqttApplicationMessage。)
公共属性Retain
该消息是否在服务器端进行保留,详细的说明参照文档的备注
Whether the message is retained on the server. For details, refer to the remarks of the document.
(继承自 MqttApplicationMessage。)
公共属性Topic
主题名(Topic Name)用于识别有效载荷数据应该被发布到哪一个信息通道。
The Topic Name is used to identify which information channel the payload data should be published to.
(继承自 MqttApplicationMessage。)
公共属性UserName
当前的客户端的用户名
Username of the current client
Top
方法
  名称说明
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (继承自 MqttApplicationMessage。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见