Class MqttMsgPublishedEventArgs
Represents the event arguments for a published message.
Inherited Members
Namespace: nanoFramework.M2Mqtt.Messages
Assembly: nanoFramework.M2Mqtt.Core.dll
Syntax
public class MqttMsgPublishedEventArgs : EventArgs
Constructors
MqttMsgPublishedEventArgs(ushort)
Initializes a new instance of the MqttMsgPublishedEventArgs class for a published message.
Declaration
public MqttMsgPublishedEventArgs(ushort messageId)
Parameters
Type | Name | Description |
---|---|---|
ushort | messageId | The message identifier that was published. |
MqttMsgPublishedEventArgs(ushort, bool)
Initializes a new instance of the MqttMsgPublishedEventArgs class.
Declaration
public MqttMsgPublishedEventArgs(ushort messageId, bool isPublished)
Parameters
Type | Name | Description |
---|---|---|
ushort | messageId | The message identifier. |
bool | isPublished | A 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).
Declaration
public bool IsPublished { get; set; }
Property Value
Type | Description |
---|---|
bool |
MessageId
Gets or sets the message identifier.
Declaration
public ushort MessageId { get; set; }
Property Value
Type | Description |
---|---|
ushort |