点击或拖拽改变大小

MqttApplicationMessage 类

Mqtt的一次完整消息内容,包含主题,负载数据,消息等级。
Mqtt's complete message content, including subject, payload data, message level.
继承层次
SystemObject
  HslCommunication.MQTTMqttApplicationMessage
    HslCommunication.MQTTMqttClientApplicationMessage

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

MqttApplicationMessage 类型公开以下成员。

构造函数
  名称说明
公共方法MqttApplicationMessage
初始化 MqttApplicationMessage 类的一个新实例
Top
属性
  名称说明
公共属性Payload
有效载荷包含将被发布的应用消息。数据的内容和格式是应用特定的。
The payload contains application messages to be published. The content and format of the data is application specific.
公共属性QualityOfServiceLevel
这个字段表示应用消息分发的服务质量等级保证。分为,最多一次,最少一次,正好一次,只发不推送。
This field indicates the quality of service level guarantee for application message distribution. Divided into, at most once, at least once, exactly once
公共属性Retain
该消息是否在服务器端进行保留,详细的说明参照文档的备注
Whether the message is retained on the server. For details, refer to the remarks of the document.
公共属性Topic
主题名(Topic Name)用于识别有效载荷数据应该被发布到哪一个信息通道。
The Topic Name is used to identify which information channel the payload data should be published to.
Top
方法
  名称说明
公共方法Equals
Determines whether the specified object is equal to the current object.
(继承自 Object。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法ToString
Returns a string that represents the current object.
(重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见