导出 (0) 打印
全部展开

SequenceNumber 属性

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

获取服务总线分配给消息的唯一编号。

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

member SequenceNumber : int64 with get, internal set

属性值

类型:System..::..Int64
Service Bus 分配给消息的唯一编号。

异常条件
ObjectDisposedException

如果消息处于已释放状态,则会引发此异常。

InvalidOperationException

如果未从消息服务器收到消息,则会引发此异常。

The sequence number is scoped to the queue or topic. The value is only available on the message received from the Service Bus.

For queues, sequence numbers are assigned to each message in ascending order. For topics and subscriptions, the sequence number for every subscription starts at 1. Therefore, if you create a new subscription, SequenceNumber is set to 1, but applies to the new message that was published after the subscription was created.

社区附加资源

添加
Microsoft 正在进行一项网上调查,以了解您对 MSDN 网站的意见。 如果您选择参加,我们将会在您离开 MSDN 网站时向您显示该网上调查。

是否要参加?
显示:
© 2014 Microsoft