The JobStarted Event is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Occurs when a job is about to start.Visual Basic (Declaration) | |
---|---|
Event JobStarted As EventHandler(Of OcrAutoRecognizeRunJobEventArgs) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrAutoRecognizeManager Dim handler As EventHandler(Of OcrAutoRecognizeRunJobEventArgs) AddHandler instance.JobStarted, handler |
C# | |
---|---|
event EventHandler<OcrAutoRecognizeRunJobEventArgs> JobStarted |
C++/CLI | |
---|---|
event EventHandler<OcrAutoRecognizeRunJobEventArgs^>^ JobStarted |
The event handler receives an argument of type OcrAutoRecognizeRunJobEventArgs containing data related to this event. The following OcrAutoRecognizeRunJobEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Job | Gets the job that triggered this event. |
Status | Gets or sets a value indicating whether to continue or abort current job. |
This event will occur when Run, IOcrAutoRecognizeManager.RunJob or IOcrAutoRecognizeManager.RunJobAsync is called.
To abort pending jobs in a multi-threaded application using IOcrAutoRecognizeManager, you subscribe to this event and set the value of OcrAutoRecognizeRunJobEventArgs.Status to OcrAutoRecognizeManagerJobStatus.Abort. You can also examine OcrAutoRecognizeRunJobEventArgs.Job and only abort certain jobs depending on your application logic.
The IOcrAutoRecognizeManager.JobCompleted event will always occur when a job is run whether the job is aborted or completed.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7