Export (0) Print
Expand All

AvailabilityGroupState Class

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

Object
  Microsoft.SqlServer.Management.Smo.AvailabilityGroupState

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

public class AvailabilityGroupState implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable

The AvailabilityGroupState type exposes the following members.

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

  NameDescription
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.
Top

  NameDescription
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.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft