다음을 통해 공유


AgentStartMode 속성

Gets the start mode for the SQL Server Agent service.

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

구문

‘선언
<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")> _
<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")> _
ReadOnly Property AgentStartMode As ServiceStartMode
    Get
‘사용 방법
Dim instance As IServerSetupFacet
Dim value As ServiceStartMode

value = instance.AgentStartMode
[DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")]
[DisplayNameKeyAttribute("JobServer_ServiceStartModeName")]
ServiceStartMode AgentStartMode { get; }
[DisplayDescriptionKeyAttribute(L"JobServer_ServiceStartModeDesc")]
[DisplayNameKeyAttribute(L"JobServer_ServiceStartModeName")]
property ServiceStartMode AgentStartMode {
    ServiceStartMode get ();
}
[<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")>]
[<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")>]
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.

예제

속성 설정