点击或拖拽改变大小

SubscribeTopic 类

订阅的主题信息
Subscribed topic information
继承层次
SystemObject
  HslCommunication.MQTTSubscribeTopic

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

SubscribeTopic 类型公开以下成员。

构造函数
  名称说明
公共方法SubscribeTopic
使用指定的主题初始化
Initialize with the specified theme
Top
属性
  名称说明
公共属性SubscribeTick
主题被订阅的次数
The number of times the topic was subscribed
公共属性Topic
主题信息
topic information
Top
方法
  名称说明
公共方法AddSubscribeTick
增加一个订阅的计数信息,不需要手动调用,在 MqttClient 订阅主题之后,会自动增加
Add a subscription count information, no need to manually call it, it will be automatically added after MqttClient subscribes to the topic
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法RemoveSubscribeTick
减少一个订阅的计数信息,用户可以手动调用,比如判断是否是最后一次移除,然后决定是否通过 MqttClient 取消订阅主题
Reduce the count information of a subscription, the user can call it manually, such as judging whether it is the last removal, and then decide whether to unsubscribe the topic through MqttClient
公共方法ToString (重写 ObjectToString.)
公共方法TriggerSubscription
使用指定的参数,触发订阅主题的事件
Using the specified parameters, trigger the event of the subscribed topic
Top
事件
  名称说明
公共事件OnMqttMessageReceived
当接收到Mqtt订阅的信息的时候触发的事件
Event triggered when a message subscribed to by Mqtt is received
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见