Partilhar via


Propriedade ServiceStartMode

Gets the start mode for the SQL Server service.

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

Sintaxe

'Declaração
<DisplayDescriptionKeyAttribute("Server_ServiceStartModeDesc")> _
<DisplayNameKeyAttribute("Server_ServiceStartModeName")> _
ReadOnly Property ServiceStartMode As ServiceStartMode
    Get
'Uso
Dim instance As IServerSetupFacet
Dim value As ServiceStartMode

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

Valor da propriedade

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