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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。