JobServer.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(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property SqlAgentAutoStart As Boolean
Get
Set
用法
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)
属性值
类型: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.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo.Agent 命名空间