State Property (SqlService Class)

Gets or sets the current state of the service.

Syntax

object.State [= value]

Parts

Property Value/Return Value

A uint32 value that specifies the state of the service.

Values can be one of the following.

  • 1
    Stopped. The service is stopped.

  • 2
    Start Pending. The service is waiting to start.

  • 3
    Stop Pending. The service is waiting to stop.

  • 4
    Running. The service is running.

  • 5
    Continue Pending. The service is waiting to continue.

  • 6
    Pause Pending. The service is waiting to pause.

  • 7
    Paused. The service is paused.

See Also

Concepts