AvailabilityGroupState AvailabilityGroupState AvailabilityGroupState Class

Definition

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

public ref class AvailabilityGroupState : Microsoft::SqlServer::Management::Common::IRefreshable, Microsoft::SqlServer::Management::Facets::IDmfAdapter, Microsoft::SqlServer::Management::Sdk::Sfc::IDmfFacet, Microsoft::SqlServer::Management::Smo::IAvailabilityGroupState
public class AvailabilityGroupState : Microsoft.SqlServer.Management.Common.IRefreshable, Microsoft.SqlServer.Management.Facets.IDmfAdapter, Microsoft.SqlServer.Management.Sdk.Sfc.IDmfFacet, Microsoft.SqlServer.Management.Smo.IAvailabilityGroupState
Public Class AvailabilityGroupState
Implements IAvailabilityGroupState, IDmfAdapter, IDmfFacet, IRefreshable
Inheritance
AvailabilityGroupStateAvailabilityGroupStateAvailabilityGroupState
Implements
Microsoft.SqlServer.Management.Common.IRefreshableMicrosoft.SqlServer.Management.Common.IRefreshableMicrosoft.SqlServer.Management.Common.IRefreshable Microsoft.SqlServer.Management.Facets.IDmfAdapterMicrosoft.SqlServer.Management.Facets.IDmfAdapterMicrosoft.SqlServer.Management.Facets.IDmfAdapter IDmfFacetIDmfFacetIDmfFacet IAvailabilityGroupStateIAvailabilityGroupStateIAvailabilityGroupState

Constructors

AvailabilityGroupState(AvailabilityGroup) AvailabilityGroupState(AvailabilityGroup) AvailabilityGroupState(AvailabilityGroup)

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

Properties

IsAutoFailover IsAutoFailover 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 IsOnline IsOnline

Gets whether the availability group is online.

NumberOfDisconnectedReplicas NumberOfDisconnectedReplicas NumberOfDisconnectedReplicas

Gets the number of replicas that are not in a “Connected” state.

NumberOfNotSynchronizedReplicas NumberOfNotSynchronizedReplicas NumberOfNotSynchronizedReplicas

Gets the number of replicas that are not in a “Synchronized” state.

NumberOfNotSynchronizingReplicas NumberOfNotSynchronizingReplicas NumberOfNotSynchronizingReplicas

Gets the number of replicas in a “Not Synchronizing” state.

NumberOfReplicasWithUnhealthyRole NumberOfReplicasWithUnhealthyRole NumberOfReplicasWithUnhealthyRole

Gets the number of replicas that are neither a primary or a secondary in the Availability Group.

NumberOfSynchronizedSecondaryReplicas NumberOfSynchronizedSecondaryReplicas NumberOfSynchronizedSecondaryReplicas

Gets the number of synchronous secondary replicas with Automatic Failover mode and Synchronized state.

Methods

Refresh() Refresh() Refresh()

Reloads the availability group.

Applies to