AvailabilityGroupState 类

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

继承层次结构

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Class AvailabilityGroupState _
    Implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable
用法
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

AvailabilityGroupState 类型公开以下成员。

构造函数

  名称 说明
公共方法 AvailabilityGroupState Initializes a new instance of the AvailabilityGroupState class with the specified availability group.

页首

属性

  名称 说明
公共属性 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 Gets whether the availability group is online.
公共属性 NumberOfDisconnectedReplicas Gets the number of replicas that are not in a “Connected” state.
公共属性 NumberOfNotSynchronizedReplicas Gets the number of replicas that are not in a “Synchronized” state.
公共属性 NumberOfNotSynchronizingReplicas Gets the number of replicas in a “Not Synchronizing” state.
公共属性 NumberOfReplicasWithUnhealthyRole Gets the number of replicas that are neither a primary or a secondary in the Availability Group.
公共属性 NumberOfSynchronizedSecondaryReplicas Gets the number of synchronous secondary replicas with Automatic Failover mode and Synchronized state.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Refresh Reloads the availability group.
公共方法 ToString (从 Object 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Smo 命名空间