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)

property String^ MessageId {
	String^ get();
	void set(String^ value);

Property Value

Type: System::String^

The identifier of the message.

Exception Condition

Thrown if the message is in a disposed state.


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

Return to top