MqttSessionInfoForbidPublishTopic 属性 |
获取或设置当前的MQTT客户端是否允许发布消息,默认为False,如果设置为True,就是禁止发布消息,服务器不会触发收到消息的事件。
Gets or sets whether the current MQTT client is allowed to publish messages, the default is False,
if set to True, it is forbidden to publish messages, The server does not trigger the event of receiving a message.
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public bool ForbidPublishTopic { get; set; }
Public Property ForbidPublishTopic As Boolean
Get
Set
public:
property bool ForbidPublishTopic {
bool get ();
void set (bool value);
}
member ForbidPublishTopic : bool with get, set
属性值
类型:
Boolean参见