Partilhar via


Propriedade do RDL IAvailabilityGroupState.IsAutoFailover

Returns true if the failover mode of the current primary replica of the Availability Group is set to Automatic Failover.

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

Sintaxe

'Declaração
<DisplayNameKeyAttribute("AvailabilityGroupState_IsAutoFailoverName")> _
<DisplayDescriptionKeyAttribute("AvailabilityGroupState_IsAutoFailoverDesc")> _
ReadOnly Property IsAutoFailover As Boolean 
    Get
'Uso
Dim instance As IAvailabilityGroupState 
Dim value As Boolean 

value = instance.IsAutoFailover
[DisplayNameKeyAttribute("AvailabilityGroupState_IsAutoFailoverName")]
[DisplayDescriptionKeyAttribute("AvailabilityGroupState_IsAutoFailoverDesc")]
bool IsAutoFailover { get; }
[DisplayNameKeyAttribute(L"AvailabilityGroupState_IsAutoFailoverName")]
[DisplayDescriptionKeyAttribute(L"AvailabilityGroupState_IsAutoFailoverDesc")]
property bool IsAutoFailover {
    bool get ();
}
[<DisplayNameKeyAttribute("AvailabilityGroupState_IsAutoFailoverName")>]
[<DisplayDescriptionKeyAttribute("AvailabilityGroupState_IsAutoFailoverDesc")>]
abstract IsAutoFailover : bool
function get IsAutoFailover () : boolean

Valor da propriedade

Tipo: System.Boolean
True if the failover mode of the current primary replica of the Availability Group is set to Automatic Failover; otherwise, false.

Consulte também

Referência

IAvailabilityGroupState Interface

Namespace Microsoft.SqlServer.Management.Smo