Share via


MqttDisconnectPacketProperties Class

Definition

Represents the properties of an MQTT DISCONNECT packet.

[System.Runtime.Serialization.DataContract]
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Azure.WebPubSub.Common.MqttDisconnectPacketPropertiesJsonConverter))]
public class MqttDisconnectPacketProperties
[<System.Runtime.Serialization.DataContract>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Azure.WebPubSub.Common.MqttDisconnectPacketPropertiesJsonConverter))>]
type MqttDisconnectPacketProperties = class
Public Class MqttDisconnectPacketProperties
Inheritance
MqttDisconnectPacketProperties
Attributes

Properties

Code

The DISCONNECT reason code defined in MQTT 5.0 spec. For MQTT 3.1.1 clients, it's always the default value 0.

UserProperties

The user properties in the DISCONNECT packet sent by the client. The value is not null only if the client sent a DISCONNECT packet with user properties.

Applies to