点击或拖拽改变大小

MqttClientIsConnected 属性

获取或设置当前的服务器连接是否成功,定时获取本属性可用于实时更新连接状态信息。
Get or set whether the current server connection is successful or not. This property can be obtained regularly and can be used to update the connection status information in real time.

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public bool IsConnected { get; }

属性值

类型:Boolean
参见