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

NamedPartitionInformation 类

定义

将名称的分区信息描述为基于分区方案的字符串。 使用 创建服务时,NamedPartitionSchemeDescription服务会观察到此类型的 ServicePartitionInformationNamedPartitionInformation派生自 IServicePartition 接口,并作为 或 IStatelessServicePartition 接口的IStatefulServicePartition一部分提供给服务,该接口在有状态OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken)或无OpenAsync(IStatelessServicePartition, CancellationToken)状态 期间传入。

public sealed class NamedPartitionInformation : System.Fabric.ServicePartitionInformation
type NamedPartitionInformation = class
    inherit ServicePartitionInformation
Public NotInheritable Class NamedPartitionInformation
Inherits ServicePartitionInformation
继承
NamedPartitionInformation

属性

Id

将此分区的分区 ID 指定为 GUID。

(继承自 ServicePartitionInformation)
Kind

描述分区的类型。

(继承自 ServicePartitionInformation)
Name

指示服务的此分区的名称。

适用于