Class MqttMsgPublishedEventArgs
- Namespace
- nanoFramework.M2Mqtt.Messages
- Assembly
- nanoFramework.M2Mqtt.Core.dll
Represents the event arguments for a published message.
public class MqttMsgPublishedEventArgs : EventArgs
- Inheritance
-
MqttMsgPublishedEventArgs
- Inherited Members
- Extension Methods
Constructors
MqttMsgPublishedEventArgs(ushort)
Initializes a new instance of the MqttMsgPublishedEventArgs class for a published message.
public MqttMsgPublishedEventArgs(ushort messageId)
Parameters
messageId
ushortThe message identifier that was published.
MqttMsgPublishedEventArgs(ushort, bool)
Initializes a new instance of the MqttMsgPublishedEventArgs class.
public MqttMsgPublishedEventArgs(ushort messageId, bool isPublished)
Parameters
messageId
ushortThe message identifier.
isPublished
boolA value indicating whether the message was published.
Properties
IsPublished
Gets or sets a value indicating whether the message was published (or failed due to retries).
public bool IsPublished { get; set; }
Property Value
MessageId
Gets or sets the message identifier.
public ushort MessageId { get; set; }