Indicates the current state of the service.
| C# | Visual Basic |
public enum ServiceControllerStatus
Public Enumeration ServiceControllerStatus
| Member | Description |
|---|---|
| Unknown |
The state of the service is unknown.
|
| Stopped |
The service is turned off.
|
| Running |
The service is turned on.
|
| StartPending |
The service is in the process of starting up.
|
| StopPending |
The service is in the process of shutting down.
|
| Unloading |
The service is in the process of unloading.
|
| Uninitialized |
The service is not uninitialized.
|
| HasFlag |
Determines whether one or more bit fields are set in the current instance.
|