共用方式為


IServerSetupFacet.ServiceStartMode 屬性

Gets the start mode for the SQL Server service.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayNameKeyAttribute("Server_ServiceStartModeName")> _
<DisplayDescriptionKeyAttribute("Server_ServiceStartModeDesc")> _
ReadOnly Property ServiceStartMode As ServiceStartMode 
    Get
'用途
Dim instance As IServerSetupFacet 
Dim value As ServiceStartMode 

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

屬性值

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

範例

設定屬性

請參閱

參考

IServerSetupFacet 介面

Microsoft.SqlServer.Management.Smo 命名空間