Класс 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.) |
В начало
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.