ServiceController.WaitForStatus Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: