导出 (0) 打印
全部展开

SessionId 属性

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

获取或设置会话标识符。

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

声明
Public Property SessionId As String
	Get
	Set
用法
Dim instance As BrokeredMessage
Dim value As String

value = instance.SessionId

instance.SessionId = value

属性值

类型:System..::..String
会话标识符。

异常条件
ObjectDisposedException

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

A SessionId is a logical and lightweight way to correlate messages to each other. For example, the sender can set SessionId = "NewSessionId" of several messages as an indicator that these messages are related to each other. This SessionId does not represent any significance to the Service Bus and not checked by the service. It is for the receivers to consume if needed.

社区附加资源

显示:
© 2015 Microsoft