共用方式為


IServerSetupFacet.AgentStartMode 屬性

Gets the start mode for the SQL Server Agent service.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")> _
<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")> _
ReadOnly Property AgentStartMode As ServiceStartMode 
    Get
'用途
Dim instance As IServerSetupFacet 
Dim value As ServiceStartMode 

value = instance.AgentStartMode
[DisplayNameKeyAttribute("JobServer_ServiceStartModeName")]
[DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")]
ServiceStartMode AgentStartMode { get; }
[DisplayNameKeyAttribute(L"JobServer_ServiceStartModeName")]
[DisplayDescriptionKeyAttribute(L"JobServer_ServiceStartModeDesc")]
property ServiceStartMode AgentStartMode {
    ServiceStartMode get ();
}
[<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")>]
[<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")>]
abstract AgentStartMode : ServiceStartMode
function get AgentStartMode () : ServiceStartMode

屬性值

型別:Microsoft.SqlServer.Management.Smo.ServiceStartMode
A ServiceStartMode value that specifies the start mode for the SQL Server Agent service.

範例

設定屬性

請參閱

參考

IServerSetupFacet 介面

Microsoft.SqlServer.Management.Smo 命名空間