Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ForwardTo Property

SubscriptionDescription.ForwardTo Property

 

Gets or sets the path to the recipient to which the message is forwarded.

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

public string ForwardTo { get; set; }

Property Value

Type: System.String

The path to the recipient to which the message is forwarded.

ForwardTo enables you to chain messaging entities and create topologies. The recipient can be a queue or topic. After you set this property on a subscription, messages cannot be directly received from that entity.

Service Bus supports automatic message forwarding from the subscription of a partitioned topic (source) into a partitioned queue or topic (destination) by setting the ForwardTo property on the subscription of the source topic. If the message contains a partition key (SessionId, PartitionKey, or MessageId if the RequiresDuplicateDetection property is set to true), the key is used for the source topic as well as for the destination entity. If you use a transaction to send messages to the source topic, the message must have the SessionId or PartitionKey properties set. If a single transaction is used to send multiple messages to the source topic, all messages must use the same partition key.

Note that if the destination entity has many messages accumulated and exceeds the quota, or the destination entity is disabled, the source entity adds the messages to its dead-letter queue until there is space in the destination (or the entity is re-enabled). Those messages will continue to live in the dead-letter queue, so you must explicitly receive and process them from the dead-letter queue.

For more information, see .

Return to top
Show:
© 2015 Microsoft