IServerSetupFacet.AgentStartMode Property

 

Applies To: SQL Server 2016 Preview

Gets the start mode for the SQL Server Agent service.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")]
[DisplayNameKeyAttribute("JobServer_ServiceStartModeName")]
ServiceStartMode AgentStartMode { get; }
[DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")]
[DisplayNameKeyAttribute("JobServer_ServiceStartModeName")]
property ServiceStartMode AgentStartMode {
    ServiceStartMode get();
}
[<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")>]
[<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")>]
abstract AgentStartMode : ServiceStartMode with get
<DisplayDescriptionKeyAttribute("JobServer_ServiceStartModeDesc")>
<DisplayNameKeyAttribute("JobServer_ServiceStartModeName")>
ReadOnly Property AgentStartMode As ServiceStartMode

Property Value

Type: Microsoft.SqlServer.Management.Smo.ServiceStartMode

A ServiceStartMode value that specifies the start mode for the SQL Server Agent service.

Examples

Legacy Code Example

Setting Properties

See Also

IServerSetupFacet Interface
Microsoft.SqlServer.Management.Smo Namespace

Return to top