ImageGear .NET v24.12 - Updated
SetTimeout Method




ImageGear24.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecognition Class : SetTimeout Method
New timeout period in milliseconds.
Sets the timeout period for different tasks.
Syntax
'Declaration
 
Public Sub SetTimeout( _
   ByVal timeout As Integer _
) 
'Usage
 
Dim instance As ImGearRecognition
Dim timeout As Integer
 
instance.SetTimeout(timeout)
public void SetTimeout( 
   int timeout
)
public: void SetTimeout( 
   int timeout
) 
public:
void SetTimeout( 
   int timeout
) 

Parameters

timeout
New timeout period in milliseconds.
Remarks
If this method is not called to specify the timeout period, the default value 180000 milliseconds (3 minutes) is applied.

When the timeout value is reached, the corresponding Recognition method will throw the exception with error code ImGearErrorCodes.REC_ENGINE_FAILURE and the following sub-string in the description: "API_TIMEOUT_ERR (0x8004C417)".

See Also

Reference

ImGearRecognition Class
ImGearRecognition Members
GetTimeout Method