IAvailabilityGroupState Interface
Represents the adapter class that implements the IAvailabilityGroupState logical facet for an Availability Group.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[DisplayDescriptionKeyAttribute("AvailabilityGroupStateDesc")] [EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] [TypeConverterAttribute((LocalizableTypeConverter^::typeid))] [LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.FacetSR")] [DisplayNameKeyAttribute("AvailabilityGroupStateName")] public interface class IAvailabilityGroupState : IDmfFacet, IRefreshable
| Name | Description | |
|---|---|---|
![]() | IsAutoFailover | Returns true if the failover mode of the current primary replica of the Availability Group is set to Automatic Failover. |
![]() | IsOnline | Indicates whether the Availability Group is up. |
![]() | NumberOfDisconnectedReplicas | Gets the number of replicas that are not in a "Connected" state. |
![]() | NumberOfNotSynchronizedReplicas | Gets the number of replicas that are not in a "Synchronized" state. |
![]() | NumberOfNotSynchronizingReplicas | Gets the number of replicas in a "Not Synchronizing" state. |
![]() | NumberOfReplicasWithUnhealthyRole | Gets the number of replicas that are neither a primary or a secondary in the Availability Group. |
![]() | NumberOfSynchronizedSecondaryReplicas | Gets the number of synchronous secondary replicas with Automatic Failover mode and Synchronized state. |
| Name | Description | |
|---|---|---|
![]() | Refresh() | (Inherited from IRefreshable.) |
Show:

