IAvailabilityGroupState.NumberOfReplicasWithUnhealthyRole Property
Applies To: SQL Server 2016 Preview
Gets the number of replicas that are neither a primary or a secondary in the Availability Group.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")]
[DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")]
int NumberOfReplicasWithUnhealthyRole { get; }
[DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")]
[DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")]
property int NumberOfReplicasWithUnhealthyRole {
int get();
}
[<DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")>]
[<DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")>]
abstract NumberOfReplicasWithUnhealthyRole : int with get
<DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")>
<DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")>
ReadOnly Property NumberOfReplicasWithUnhealthyRole As Integer
Property Value
Type: System.Int32
The number of replicas that are neither a primary or a secondary in the Availability Group.
See Also
IAvailabilityGroupState Interface
Microsoft.SqlServer.Management.Smo Namespace
Return to top