MqttConnectProperties Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The properties of the MQTT CONNECT packet.
[System.Runtime.Serialization.DataContract]
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Azure.WebPubSub.Common.MqttConnectPropertiesJsonConverter))]
public class MqttConnectProperties
[<System.Runtime.Serialization.DataContract>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Azure.WebPubSub.Common.MqttConnectPropertiesJsonConverter))>]
type MqttConnectProperties = class
Public Class MqttConnectProperties
- Inheritance
-
MqttConnectProperties
- Attributes
Properties
Password |
The password field in the MQTT CONNECT packet. Use string type instead of byte[] to avoid the problem of serialization. Although System.Text.Json serializes byte[] to base64 string by default, it is not explicitly documented. |
ProtocolVersion |
MQTT protocol version. |
Username |
The username field in the MQTT CONNECT packet. |
UserProperties |
The user properties in the MQTT CONNECT packet. |
Applies to
Azure SDK for .NET