Partager via


Classe AvailabilityGroupState

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

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.AvailabilityGroupState

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Class AvailabilityGroupState _
    Implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable
'Utilisation
Dim instance As AvailabilityGroupState
public class AvailabilityGroupState : IAvailabilityGroupState, 
    IDmfFacet, IDmfAdapter, IRefreshable
public ref class AvailabilityGroupState : IAvailabilityGroupState, 
    IDmfFacet, IDmfAdapter, IRefreshable
type AvailabilityGroupState =  
    class 
        interface IAvailabilityGroupState 
        interface IDmfFacet 
        interface IDmfAdapter 
        interface IRefreshable 
    end
public class AvailabilityGroupState implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable

Le type AvailabilityGroupState expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique AvailabilityGroupState Initializes a new instance of the AvailabilityGroupState class with the specified availability group.

Haut de la page

Propriétés

  Nom Description
Propriété publique IsAutoFailover Gets a value that indicates whether the failover mode of the current primary replica of the availability group is set to automatic failover.
Propriété publique IsOnline Gets whether the availability group is online.
Propriété publique NumberOfDisconnectedReplicas Gets the number of replicas that are not in a “Connected” state.
Propriété publique NumberOfNotSynchronizedReplicas Gets the number of replicas that are not in a “Synchronized” state.
Propriété publique NumberOfNotSynchronizingReplicas Gets the number of replicas in a “Not Synchronizing” state.
Propriété publique NumberOfReplicasWithUnhealthyRole Gets the number of replicas that are neither a primary or a secondary in the Availability Group.
Propriété publique NumberOfSynchronizedSecondaryReplicas Gets the number of synchronous secondary replicas with Automatic Failover mode and Synchronized state.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Refresh Reloads the availability group.
Méthode publique ToString (hérité de Object.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo