Leadtools.Forms.Ocr Namespace > IOcrAutoRecognizeManager Interface : JobCompleted Event |
event EventHandler<OcrAutoRecognizeRunJobEventArgs> JobCompleted
'Declaration Event JobCompleted As EventHandler(Of OcrAutoRecognizeRunJobEventArgs)
'Usage Dim instance As IOcrAutoRecognizeManager Dim handler As EventHandler(Of OcrAutoRecognizeRunJobEventArgs) AddHandler instance.JobCompleted, handler
event EventHandler<OcrAutoRecognizeRunJobEventArgs> JobCompleted
add_JobCompleted(function(sender, e)) remove_JobCompleted(function(sender, e))
event EventHandler<OcrAutoRecognizeRunJobEventArgs^>^ JobCompleted
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, RunJob or RunJobAsync is called.
You can use this event to keep track of the number of jobs pending running. You can also examine OcrAutoRecognizeRunJobEventArgs.Job to get information on whether job finished successfully and get error status if any. RunJob example shows complete source code of how to easily accomplish these tasks in your application.
The JobCompleted event will always occur when a job is run whether the job is aborted or completed.
The JobStarted event occurs when a job is about to start.
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