Table of Contents

Class MqttClientUnsubscribeResult

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

Constructors

MqttClientUnsubscribeResult(ushort, IReadOnlyCollection<MqttClientUnsubscribeResultItem>, string, IReadOnlyCollection<MqttUserProperty>)

public MqttClientUnsubscribeResult(ushort packetIdentifier, IReadOnlyCollection<MqttClientUnsubscribeResultItem> items, string reasonString, IReadOnlyCollection<MqttUserProperty> userProperties)

Parameters

packetIdentifier ushort
items IReadOnlyCollection<MqttClientUnsubscribeResultItem>
reasonString string
userProperties IReadOnlyCollection<MqttUserProperty>

Properties

Items

Gets the result for every topic filter item.

public IReadOnlyCollection<MqttClientUnsubscribeResultItem> Items { get; }

Property Value

IReadOnlyCollection<MqttClientUnsubscribeResultItem>

PacketIdentifier

Gets the packet identifier which was used.

public ushort PacketIdentifier { get; }

Property Value

ushort

ReasonString

Gets the reason string. MQTT 5.0.0+ feature.

public string ReasonString { get; }

Property Value

string

UserProperties

Gets the user properties which were part of the UNSUBACK packet. MQTT 5.0.0+ feature.

public IReadOnlyCollection<MqttUserProperty> UserProperties { get; set; }

Property Value

IReadOnlyCollection<MqttUserProperty>

Methods

IsUnsubAckSuccessful()

public bool IsUnsubAckSuccessful()

Returns

bool

ThrowIfNotSuccessUnsubAck(string?)

public void ThrowIfNotSuccessUnsubAck(string? commandName = null)

Parameters

commandName string