你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceBusReceivedMessage.PartitionKey Property

Definition

Gets a partition key for sending a message to a partitioned entity.

public string PartitionKey { get; }
member this.PartitionKey : string
Public ReadOnly Property PartitionKey As String

Property Value

The partition key. Maximum length is 128 characters.

Remarks

For partitioned entities, setting this value enables assigning related messages to the same internal partition, so that submission sequence order is correctly recorded. The partition is chosen by a hash function over this value and cannot be chosen directly. For session-aware entities, the SessionId property overrides this value.

Applies to