共用方式為


IAvailabilityGroupState 介面

Represents the adapter class that implements the IAvailabilityGroupState logical facet for an Availability Group.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayDescriptionKeyAttribute("AvailabilityGroupStateDesc")> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.FacetSR")> _
<DisplayNameKeyAttribute("AvailabilityGroupStateName")> _
Public Interface IAvailabilityGroupState _
    Inherits IDmfFacet, IRefreshable
'用途
Dim instance As IAvailabilityGroupState
[DisplayDescriptionKeyAttribute("AvailabilityGroupStateDesc")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.FacetSR")]
[DisplayNameKeyAttribute("AvailabilityGroupStateName")]
public interface IAvailabilityGroupState : IDmfFacet, 
    IRefreshable
[DisplayDescriptionKeyAttribute(L"AvailabilityGroupStateDesc")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.FacetSR")]
[DisplayNameKeyAttribute(L"AvailabilityGroupStateName")]
public interface class IAvailabilityGroupState : IDmfFacet, 
    IRefreshable
[<DisplayDescriptionKeyAttribute("AvailabilityGroupStateDesc")>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.FacetSR")>]
[<DisplayNameKeyAttribute("AvailabilityGroupStateName")>]
type IAvailabilityGroupState =  
    interface 
        interface IDmfFacet 
        interface IRefreshable 
    end
public interface IAvailabilityGroupState extends IDmfFacet, IRefreshable

IAvailabilityGroupState 型別公開下列成員。

屬性

  名稱 說明
公用屬性 IsAutoFailover Returns true if the failover mode of the current primary replica of the Availability Group is set to Automatic Failover.
公用屬性 IsOnline Indicates whether the Availability Group is up.
公用屬性 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.

上層

方法

  名稱 說明
公用方法 Refresh Refreshes object properties by reading them from the server. (繼承自 IRefreshable。)

上層

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間