导出 (0) 打印
全部展开

ForwardTo 属性

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

获取或设置消息转发到的接收器的路径。

命名空间:  Microsoft.ServiceBus.Messaging
程序集:  Microsoft.ServiceBus(在 Microsoft.ServiceBus.dll 中)

public string ForwardTo { get; set; }

属性值

类型:System..::..String
消息转发到的接收器的路径。

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 queue, messages cannot be directly received from that queue.

Service Bus supports automatic message forwarding from a partitioned queue (source) into a partitioned queue or topic (destination) by setting the ForwardTo property on the source queue. 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 queue as well as for the destination entity. If you use a transaction to send messages to the source queue the message must have the SessionId or PartitionKey properties set. If a single transaction is used to send multiple messages to the source queue, all messages must use the same partition key.

For more information, see Chaining Service Bus entities with Auto-forwarding.

社区附加资源

添加
显示:
© 2014 Microsoft