MessageId Property
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

BrokeredMessage.MessageId Property

 

Updated: April 5, 2016

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.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public string MessageId { get; set; }

Property Value

Type: System.String

The identifier of the message.

Exception Condition
ObjectDisposedException

Thrown if the message is in a disposed state.

ArgumentException

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

The identifier of the message can be any value set by the user.

Return to top
Vis:
© 2016 Microsoft