다음을 통해 공유


SqlAgentAutoStart 속성

Gets or sets the Boolean property value that specifies whether SQL Server Agent is automatically started.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public Property SqlAgentAutoStart As Boolean
    Get
    Set
‘사용 방법
Dim instance As JobServer
Dim value As Boolean

value = instance.SqlAgentAutoStart

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

속성 값

형식: System. . :: . .Boolean
A Boolean value that specifies whether SQL Server Agent is automatically started.
If True, SQL Server Agent is automatically started.
If False, (default), SQL Server Agent is not automatically restarted.