Поделиться через


Свойство SqlAgentRestart

Gets or sets the Boolean property value that specifies whether SQL Server Agent is monitored and restarted if it stops.

Пространство имен:  Microsoft.SqlServer.Management.Smo.Agent
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<SfcPropertyAttribute> _
Public Property SqlAgentRestart As Boolean
    Get
    Set
'Применение
Dim instance As JobServer
Dim value As Boolean

value = instance.SqlAgentRestart

instance.SqlAgentRestart = value
[SfcPropertyAttribute]
public bool SqlAgentRestart { get; set; }
[SfcPropertyAttribute]
public:
property bool SqlAgentRestart {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute>]
member SqlAgentRestart : bool with get, set
function get SqlAgentRestart () : boolean
function set SqlAgentRestart (value : boolean)

Значение свойства

Тип System. . :: . .Boolean
A Boolean value that specifies whether SQL Server Agent is monitored and restarted if it stops.
If True, SQL Server Agent is restarted.
If False (default), SQL Server Agent is not restarted.