Метод Service.ChangeHadrServiceSetting
Changes the HA/DR service settings.
Пространство имен: Microsoft.SqlServer.Management.Smo.Wmi
Сборка: Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)
Синтаксис
'Декларация
Public Sub ChangeHadrServiceSetting ( _
enable As Boolean _
)
'Применение
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
)
Параметры
- enable
Тип: System.Boolean
The status of the HA/DR service settings.