Udostępnij za pośrednictwem


MqttConnectProperties Class

Definition

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