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:
property String^ MessageId {
	String^ get();
	void set(String^ value);
}

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.

Return to top
Show: