共用方式為


AvailabilityGroupState.IsAutoFailover 屬性

Gets a value that indicates whether the failover mode of the current primary replica of the availability group is set to automatic failover.

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

語法

'宣告
Public ReadOnly Property IsAutoFailover As Boolean 
    Get
'用途
Dim instance As AvailabilityGroupState 
Dim value As Boolean 

value = instance.IsAutoFailover
public bool IsAutoFailover { get; }
public:
virtual property bool IsAutoFailover {
    bool get () sealed;
}
abstract IsAutoFailover : bool 
override IsAutoFailover : bool
final function get IsAutoFailover () : boolean

屬性值

型別:System.Boolean
True if the failover mode of the current primary replica of the availability group is set to automatic failover; otherwise, false.

實作

IAvailabilityGroupState.IsAutoFailover

請參閱

參考

AvailabilityGroupState 類別

Microsoft.SqlServer.Management.Smo 命名空間