BrokeredMessage.Clone Method
Clones a message, so that it is possible to send a clone of a message as a new message.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Return Value
Type: Microsoft.ServiceBus.Messaging.BrokeredMessageReturns BrokeredMessage that contains the cloned message.
The properties and body of the message are copied to the clone, although system properties are left as-is for new message so that you can selectively copy.
Note |
|---|
You can manually set the MessageId property after the clone operation. |
Note