Aracılığıyla paylaş


IAvailabilityGroupState Interface

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

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

Syntax

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

The IAvailabilityGroupState type exposes the following members.

Properties

  Name Description
Public property IsAutoFailover Returns true if the failover mode of the current primary replica of the Availability Group is set to Automatic Failover.
Public property IsOnline Indicates whether the Availability Group is up.
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 Refresh Refreshes object properties by reading them from the server. (Inherited from IRefreshable.)

Top

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace