The ServiceManager type exposes the following members.
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
IsServiceRunning |
Determines if a specified service is running.
| |
RestartService(String) |
Restart a service.
| |
RestartService(String, Int32) |
Restart a service.
| |
StartService(String) |
Start a service.
| |
StartService(String, Int32) |
Start a service.
| |
StopService(String) |
Stop a service.
| |
StopService(String, Int32) |
Stop a service.
|
Fields
Name | Description | |
---|---|---|
DefaultTimeout |
The amount of time to wait for a service to respond, before giving up.
|
See Also