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.