Udostępnij za pośrednictwem


BrokeredMessage.MessageId 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; }
member this.MessageId : string with get, set
Public Property MessageId As String

Property Value

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.

Applies to