共用方式為


Service.IsHadrEnabled 屬性

Gets whether the High Availability/Disaster Recovery is enabled.

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

語法

'宣告
Public ReadOnly Property IsHadrEnabled As Boolean 
    Get
'用途
Dim instance As Service 
Dim value As Boolean 

value = instance.IsHadrEnabled
public bool IsHadrEnabled { get; }
public:
property bool IsHadrEnabled {
    bool get ();
}
member IsHadrEnabled : bool
function get IsHadrEnabled () : boolean

屬性值

型別:System.Boolean
True if the HA/DR id enabled; otherwise, false.

請參閱

參考

Service 類別

Microsoft.SqlServer.Management.Smo.Wmi 命名空間