Compartir a través de


IServerSetupFacet.AgentStartMode Propiedad

Gets the start mode for the SQL Server Agent service.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")> _
<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")> _
ReadOnly Property AgentStartMode As ServiceStartMode 
    Get
'Uso
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

Valor de la propiedad

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

Ejemplos

Establecer propiedades

Vea también

Referencia

IServerSetupFacet Interfaz

Espacio de nombres Microsoft.SqlServer.Management.Smo