WaitForStatus(ServiceControllerStatus,TimeSpan) Method
Summary
WWaits for the service to reach the specified status or for the specified timeout period.
Syntax
Public Overloads Sub WaitForStatus( _
ByVal desiredStatus As ServiceControllerStatus, _
ByVal timeout As TimeSpan _
)
Parameters
desiredStatus
The desired status.
timeout
The amount of time to wait for the status to be reached.