- desiredStatus
- The status to wait for.
- timeout
- A T:TimeSpan object specifying the amount of time to wait for the service to reach the specified status.
Visual Basic (Declaration) | |
---|---|
Public Sub WaitForStatus( _ ByVal desiredStatus As ServiceControllerStatus, _ ByVal timeout As TimeSpan _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void WaitForStatus( ServiceControllerStatus desiredStatus, TimeSpan timeout ) |
Managed Extensions for C++ | |
---|---|
public: void WaitForStatus( ServiceControllerStatus desiredStatus, TimeSpan timeout ) |
C++/CLI | |
---|---|
public: void WaitForStatus( ServiceControllerStatus desiredStatus, TimeSpan timeout ) |
Parameters
- desiredStatus
- The status to wait for.
- timeout
- A T:TimeSpan object specifying the amount of time to wait for the service to reach the specified status.
For an example refer to ServiceAdministrator.InstallService
This is a blocking operation.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family