StartMode Property (SqlService Class)

更新日期: 2005 年 12 月 5 日

Gets the start mode of the service.

语法

object.StartMode [= value]

Parts

Property Value/Return Value

A uint32 value that specifies the mode of the service.

Values can be one of the following.

  • Boot
    Value = 0. Service started by the operating system loader. This option is valid only for driver services.
  • System
    Value = 1. Service started by the IoInitSystem method. This option is valid only for driver services.
  • Automatic
    Value = 2. Service to be started automatically by the service control manager during system startup.
  • Manual
    Value = 3. Service to be started by the Computer Manager when a process calls the StartService method.
  • Disabled
    Value = 4. Service cannot be started.

备注

请参阅

其他资源

启动和停止服务

帮助和信息

获取 SQL Server 2005 帮助