LEADTOOLS Medical (Leadtools.Dicom.Server.Admin assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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 InstallService

Remarks

This is a blocking operation.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

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