ServiceController.WaitForStatus Method

 

Waits for the service to reach the specified status.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

NameDescription
System_CAPS_pubmethodWaitForStatus(ServiceControllerStatus)

Infinitely waits for the service to reach the specified status.

System_CAPS_pubmethodWaitForStatus(ServiceControllerStatus, TimeSpan)

Waits for the service to reach the specified status or for the specified time-out to expire.

Return to top
Show: