AvailabilityGroupState Class

Represents an adapter class that implements the IAvailabilityGroupState logical facet for an availability group.


Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public class AvailabilityGroupState : IAvailabilityGroupState, 
	IDmfFacet, IDmfAdapter, IRefreshable

The AvailabilityGroupState type exposes the following members.

Public methodAvailabilityGroupStateInitializes a new instance of the AvailabilityGroupState class with the specified availability group.

Public propertyIsAutoFailoverGets a value that indicates whether the failover mode of the current primary replica of the availability group is set to automatic failover.
Public propertyIsOnlineGets whether the availability group is online.
Public propertyNumberOfDisconnectedReplicasGets the number of replicas that are not in a “Connected” state.
Public propertyNumberOfNotSynchronizedReplicasGets the number of replicas that are not in a “Synchronized” state.
Public propertyNumberOfNotSynchronizingReplicasGets the number of replicas in a “Not Synchronizing” state.
Public propertyNumberOfReplicasWithUnhealthyRoleGets the number of replicas that are neither a primary or a secondary in the Availability Group.
Public propertyNumberOfSynchronizedSecondaryReplicasGets the number of synchronous secondary replicas with Automatic Failover mode and Synchronized state.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRefreshReloads the availability group.
Public methodToString (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.

Community Additions