0 out of 1 rated this helpful - Rate this topic

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)
public BrokeredMessage Clone()

Return Value

Type: Microsoft.ServiceBus.Messaging.BrokeredMessage
Returns 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.

NoteNote

You can manually set the MessageId property after the clone operation.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.