SetStartMode Method (SqlService Class)

업데이트: 2005년 12월 5일

Modifies the start mode of the service instance.

구문

object.SetStartMode(StartMode)

매개 변수

  • StartMode
    A uint32 value that specifies the start mode of the service instance.

    The valid values are as follows:

    Value = 0. Boot - Device driver started by the operating system loader. This value is valid only for driver services.

    Value = 1. System - Device driver started by the IoInitSystem method. This value is valid only for driver services.

    Value = 2. Automatic - Service to be started automatically by the service control manager during system startup.

    Value = 3. Manual - Service to be started by the Computer Manager when a process calls the StartService method.

    Value = 4. Disabled - Service can no longer be started.

Parts

Property Value/Return Value

A uint32 value, which is 0 if the service was successfully modified or 1 if the request is not supported. Any other number indicates an error.

주의

참고 항목

관련 자료

서비스 시작 및 중지

도움말 및 정보

SQL Server 2005 지원 받기