Leadtools.Dicom.Server.Admin Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
WaitForStatus Method
See Also 
Leadtools.Dicom.Server.Admin Namespace > DicomService Class : WaitForStatus Method




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.
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.
Waits for the DICOM Service to reach the specified status or for the specified time-out to expire.

Syntax

Visual Basic (Declaration) 
Public Sub WaitForStatus( _
   ByVal desiredStatus As ServiceControllerStatus, _
   ByVal timeout As TimeSpan _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomService
Dim desiredStatus As ServiceControllerStatus
Dim timeout As TimeSpan
 
instance.WaitForStatus(desiredStatus, timeout)
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.

Example

For an example refer to ServiceAdministrator.InstallService

Remarks

This is a blocking operation.

Requirements

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

See Also

Leadtools.Dicom.Server.Admin requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features