Error processing SSI file
LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly)

Show in webframe

Wait Method






The number of milliseconds to wait.
Waits the specified milliseconds for the thread to finish.
Syntax
public bool Wait( 
   int milliseconds
)
'Declaration
 
Public Function Wait( _
   ByVal milliseconds As Integer _
) As Boolean
'Usage
 
Dim instance As AsyncResult
Dim milliseconds As Integer
Dim value As Boolean
 
value = instance.Wait(milliseconds)

            

            
public:
bool Wait( 
   int milliseconds
) 

Parameters

milliseconds
The number of milliseconds to wait.
Example

Executes an ansynchronous method.

Copy Code  
Imports Leadtools.Dicom.AddIn

<TestMethod()> _
Public Sub ThreadFunction()
   For i As Integer = 0 To 999
      Console.WriteLine("Count: {0}", i)
   Next i
End Sub
Public Sub TestExecute()
   Dim r As AsyncResult = AsyncHelper.Execute(New Action(AddressOf ThreadFunction))

   '
   ' Wait 1 second for the thread to finish.
   '
   r.Wait(1000)
   If r.IsCompleted Then
      Console.WriteLine("Completed")
   End If
End Sub
using Leadtools.Dicom.AddIn;

public void ThreadFunction()
{
   for (int i = 0; i < 1000; i++)
   {
      Console.WriteLine("Count: {0}", i);
   }
}
public void TestExecute()
{
   AsyncResult r = AsyncHelper.Execute(new Action(ThreadFunction));
   //
   // Wait 1 second for the thread to finish.
   //

   r.Wait(1000);
   if (r.IsCompleted)
      Console.WriteLine("Completed");
}
Requirements

Target Platforms

See Also

Reference

AsyncResult Class
AsyncResult Members

Error processing SSI file
Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features