The AbortAllJobs Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Aborts all running and pending jobs.Visual Basic (Declaration) | |
---|---|
Sub AbortAllJobs() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrAutoRecognizeManager instance.AbortAllJobs() |
C# | |
---|---|
void AbortAllJobs() |
C++/CLI | |
---|---|
void AbortAllJobs(); |
Call this method to cause all running and pending jobs started with Run, IOcrAutoRecognizeManager.RunJob or IOcrAutoRecognizeManager.RunJobAsync to gracefully abort. Notice that this method will only triggers the abortion operation and returns immediatly. You must still add synchronization code if your application logic needs to be informed when all jobs are completed/aborted. For a complete example on how to accomplish this, refer to IOcrAutoRecognizeManager.RunJob.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7