Table of Contents

Class MqttClientDisconnectOptions

Namespace
Azure.Iot.Operations.Protocol.Models
Assembly
Azure.Iot.Operations.Protocol.dll
public sealed class MqttClientDisconnectOptions
Inheritance
MqttClientDisconnectOptions
Inherited Members

Properties

Reason

Gets or sets the reason code. MQTT 5.0.0+ feature.

public MqttClientDisconnectOptionsReason Reason { get; set; }

Property Value

MqttClientDisconnectOptionsReason

ReasonString

Gets or sets the reason string. MQTT 5.0.0+ feature.

public string? ReasonString { get; set; }

Property Value

string

SessionExpiryInterval

Gets or sets the session expiry interval. MQTT 5.0.0+ feature.

public uint SessionExpiryInterval { get; set; }

Property Value

uint

UserProperties

Gets or sets the user properties. MQTT 5.0.0+ feature.

public List<MqttUserProperty>? UserProperties { get; set; }

Property Value

List<MqttUserProperty>

Methods

AddUserProperty(string, string)

public void AddUserProperty(string name, string value)

Parameters

name string
value string