مشاركة عبر


AvailabilityGroupState Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class AvailabilityGroupState _
    Implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable
'Usage
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

The AvailabilityGroupState type exposes the following members.

Constructors

  Name Description
Public method AvailabilityGroupState Initializes a new instance of the AvailabilityGroupState class with the specified availability group.

Top

Properties

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

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Refresh Reloads the availability group.
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace