销售电话: 1-800-867-1380

SessionId 属性

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

获取或设置会话标识符。

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

public string SessionId { get; set; }

属性值

类型: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.

本文是否对您有所帮助?
(1500 个剩余字符)
感谢您的反馈

社区附加资源

添加
显示:
© 2014 Microsoft