Leadtools.Forms.Ocr Namespace > IOcrAutoRecognizeManager Interface : JobStarted Event |
event EventHandler<OcrAutoRecognizeRunJobEventArgs> JobStarted
'Declaration Event JobStarted As EventHandler(Of OcrAutoRecognizeRunJobEventArgs)
'Usage Dim instance As IOcrAutoRecognizeManager Dim handler As EventHandler(Of OcrAutoRecognizeRunJobEventArgs) AddHandler instance.JobStarted, handler
event EventHandler<OcrAutoRecognizeRunJobEventArgs> JobStarted
add_JobStarted(function(sender, e)) remove_JobStarted(function(sender, e))
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, RunJob or 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 JobCompleted event will always occur when a job is run whether the job is aborted or completed.
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