Condividi tramite


Proprietà IServerSetupFacet.AgentStartMode

Gets the start mode for the SQL Server Agent service.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")> _
<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")> _
ReadOnly Property AgentStartMode As ServiceStartMode 
    Get
'Utilizzo
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

Valore proprietà

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

Esempi

Impostazione delle proprietà

Vedere anche

Riferimento

IServerSetupFacet Interfaccia

Spazio dei nomi Microsoft.SqlServer.Management.Smo