مشاركة عبر


Service.ChangeHadrServiceSetting Method

Changes the HA/DR service settings.

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

Syntax

'Declaration
Public Sub ChangeHadrServiceSetting ( _
    enable As Boolean _
)
'Usage
Dim instance As Service 
Dim enable As Boolean

instance.ChangeHadrServiceSetting(enable)
public void ChangeHadrServiceSetting(
    bool enable
)
public:
void ChangeHadrServiceSetting(
    bool enable
)
member ChangeHadrServiceSetting : 
        enable:bool -> unit
public function ChangeHadrServiceSetting(
    enable : boolean
)

Parameters

  • enable
    Type: System.Boolean
    The status of the HA/DR service settings.

See Also

Reference

Service Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace