LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

SetTimeout Method








The Timeout value in seconds.
Sets the timeout value for communicating with the Print SCP. .NET support
Syntax
public void SetTimeout( 
   int timeout
)
'Declaration
 
Public Sub SetTimeout( _
   ByVal timeout As Integer _
) 
'Usage
 
Dim instance As DicomPrintScu
Dim timeout As Integer
 
instance.SetTimeout(timeout)
public void SetTimeout( 
   int timeout
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomPrintScu.SetTimeout( 
   timeout 
)
public:
void SetTimeout( 
   int timeout
) 

Parameters

timeout
The Timeout value in seconds.
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(String,Int32,String,String,DicomPrintScuPrintManagementClassFlags), 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.

Example
For an example, refer to Associate(String,Int32,String,String,DicomPrintScuPrintManagementClassFlags).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomPrintScu Class
DicomPrintScu Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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