Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SetTimeout Method
See Also 
Leadtools.Dicom Namespace > DicomPrintScu Class : SetTimeout Method




timeout
The Timeout value in seconds.
Sets the timeout value for communicating with the Print SCP.

Syntax

Visual Basic (Declaration) 
Public Sub SetTimeout( _
   ByVal timeout As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomPrintScu
Dim timeout As Integer
 
instance.SetTimeout(timeout)
C# 
public void SetTimeout( 
   int timeout
)
Managed Extensions for C++ 
public: void SetTimeout( 
   int timeout
) 
C++/CLI 
public:
void SetTimeout( 
   int timeout
) 

Parameters

timeout
The Timeout value in seconds.

Example

For an example, refer to Associate.

Remarks

When a method of the DicomPrintScu class sends a request to the Print SCP, it waits a specific amount of time for the Print SCP response. If this amount of time has elapsed before the response is received, the method will fail and throw a DicomExceptionCode.PrintSCUTimeout exception. Use SetTimeout to set this timeout value. If the value specified is 0, the methods will wait for the Print SCP response indefinitely.

For the method Associate, the connection must be established and the Print SCP response to the Association request must be received within the amount of time specified.

If this method is not used to set the timeout value, a default value of 30 seconds will be used.

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 requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features