你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Replica 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化副本 (replica)
protected Replica(System.Fabric.Query.ServiceKind serviceKind, long id, System.Fabric.Query.ServiceReplicaStatus replicaStatus, System.Fabric.Health.HealthState healthState, string replicaAddress, string nodeName, TimeSpan lastInBuildDuration);
new System.Fabric.Query.Replica : System.Fabric.Query.ServiceKind * int64 * System.Fabric.Query.ServiceReplicaStatus * System.Fabric.Health.HealthState * string * string * TimeSpan -> System.Fabric.Query.Replica
Protected Sub New (serviceKind As ServiceKind, id As Long, replicaStatus As ServiceReplicaStatus, healthState As HealthState, replicaAddress As String, nodeName As String, lastInBuildDuration As TimeSpan)
参数
- serviceKind
- ServiceKind
副本 (replica) 的类型
- id
- Int64
副本 (replica) ID
- replicaStatus
- ServiceReplicaStatus
将使用 初始化状态副本 (replica) 。
- healthState
- HealthState
运行状况副本 (replica) 将初始化为
- replicaAddress
- String
将使用 副本 (replica) 地址进行初始化。
- nodeName
- String
将使用 初始化副本 (replica) 的节点名称
- lastInBuildDuration
- TimeSpan
将使用 初始化副本 (replica) 的最后一个生成持续时间。