Brokered​Message.​Message​Id Property

Definition

Gets or sets the identifier of the message. This is a user-defined value that Service Bus can use to identify duplicate messages, if enabled.

public string MessageId { get; set; }
Returns

The identifier of the message.

Exceptions

Thrown if the message is in a disposed state.

Thrown if the message identifier is null or exceeds 128 characters in length.