This documentation is archived and is not being maintained.

ServiceController.WaitForStatus Method

Waits for the service to reach the specified status.

Name Description
ServiceController.WaitForStatus (ServiceControllerStatus) Infinitely waits for the service to reach the specified status.
ServiceController.WaitForStatus (ServiceControllerStatus, TimeSpan) Waits for the service to reach the specified status or for the specified time-out to expire.
Show: