Udostępnij za pośrednictwem


Właściwość JobServer.SqlAgentAutoStart

Pobiera lub ustawia Boolean wartość właściwość, która określa, czy SQL Server Agent jest uruchamiane automatycznie.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Agent
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property SqlAgentAutoStart As Boolean
    Get
    Set
'Użycie
Dim instance As JobServer
Dim value As Boolean

value = instance.SqlAgentAutoStart

instance.SqlAgentAutoStart = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool SqlAgentAutoStart { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool SqlAgentAutoStart {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member SqlAgentAutoStart : bool with get, set
function get SqlAgentAutoStart () : boolean
function set SqlAgentAutoStart (value : boolean)

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy SQL Server Agent jest uruchamiane automatycznie.
Jeśli True, SQL Server Agent jest uruchamiane automatycznie.
Jeśli FAŁSZ (domyślnie), SQL Server Agent nie jest automatycznie ponownego.