AvailabilityGroupState Class
Represents an adapter class that implements the IAvailabilityGroupState logical facet for an availability group.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
| Name | Description | |
|---|---|---|
![]() | AvailabilityGroupState(AvailabilityGroup^) | Initializes a new instance of the AvailabilityGroupState class with the specified availability group. |
| Name | Description | |
|---|---|---|
![]() | IsAutoFailover | Gets a value that indicates whether the failover mode of the current primary replica of the availability group is set to automatic failover. |
![]() | IsOnline | Gets whether the availability group is online. |
![]() | 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 | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Refresh() | Reloads the availability group. |
![]() | ToString() | (Inherited from Object.) |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


