IAvailabilityGroupState.NumberOfReplicasWithUnhealthyRole 属性
Gets the number of replicas that are neither a primary or a secondary in the Availability Group.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")> _
<DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")> _
ReadOnly Property NumberOfReplicasWithUnhealthyRole As Integer
Get
用法
Dim instance As IAvailabilityGroupState
Dim value As Integer
value = instance.NumberOfReplicasWithUnhealthyRole
[DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")]
[DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")]
int NumberOfReplicasWithUnhealthyRole { get; }
[DisplayDescriptionKeyAttribute(L"AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")]
[DisplayNameKeyAttribute(L"AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")]
property int NumberOfReplicasWithUnhealthyRole {
int get ();
}
[<DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")>]
[<DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")>]
abstract NumberOfReplicasWithUnhealthyRole : int
function get NumberOfReplicasWithUnhealthyRole () : int
属性值
类型:System.Int32
The number of replicas that are neither a primary or a secondary in the Availability Group.