Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
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
'Declaration
<DisplayDescriptionKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleDesc")> _
<DisplayNameKeyAttribute("AvailabilityGroupState_NumberOfReplicasWithUnhealthyRoleName")> _
ReadOnly Property NumberOfReplicasWithUnhealthyRole As Integer
Get
'Usage
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
Property Value
Type: System.Int32
The number of replicas that are neither a primary or a secondary in the Availability Group.