Share via


MqttDisconnectPacketProperties.Code Property

Definition

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

[System.Runtime.Serialization.DataMember(Name="code")]
[System.Text.Json.Serialization.JsonPropertyName("code")]
public Microsoft.Azure.WebPubSub.Common.MqttDisconnectReasonCode Code { get; }
[<System.Runtime.Serialization.DataMember(Name="code")>]
[<System.Text.Json.Serialization.JsonPropertyName("code")>]
member this.Code : Microsoft.Azure.WebPubSub.Common.MqttDisconnectReasonCode
Public ReadOnly Property Code As MqttDisconnectReasonCode

Property Value

Attributes

Applies to