ServiceBusMessage.PartitionKey Property

Definition

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

public string PartitionKey { get; set; }

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

Prodotto Versioni
Azure SDK for .NET Latest, Preview