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

EventData.PartitionKey 属性

定义

应用于发布关联的 EventData的批处理的分区哈希键。

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

属性值

此值是只读的,只会为已从事件中心读取的事件填充。 未填充时的默认值为 null

注解

若要在发布事件时指定分区键,请在 中 SendEventOptions 指定键并使用 SendAsync(IEnumerable<EventData>, SendEventOptions, CancellationToken) 重载。

适用于