←Select platform

JobCompleted Event (DocumentConverterJobs)

Summary

Occurs when a job is completed or aborted.

Syntax

C#
VB
Java
C++
public event EventHandler<Leadtools.Documents.Converters.DocumentConverterJobEventArgs> JobCompleted 
Public Event JobCompleted As EventHandler(Of Leadtools.Documents.Converters.DocumentConverterJobEventArgs) 
public:  
   event EventHandler<Leadtools::Documents::Converters::DocumentConverterJobEventArgs^>^ JobCompleted 
public void addJobCompletedListener(DocumentConverterJobEventListener listener) 
public void removeJobCompletedListener(DocumentConverterJobEventListener listener) 

Remarks

This event will occur when RunJob or RunJobAsync is finished running.

You can use this event to keep track of the number of jobs pending running. You can also examine DocumentConverterJobEventArgs.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 JobStarted will occur exactly once per job. DocumentConverterJobEventArgs.IsPostOperation will always be false.

The JobCompleted event will always occur when a job is finished running whether the job is aborted or completed.

The JobStarted event occurs when a job is about to start.

Example

For an example, refer to RunJob and RunJobAsync.

Event Data
ParameterTypeDescription
senderobjectThe source of the event.
eDocumentConverterJobEventArgsThe event data.
Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Documents.Converters Assembly
Click or drag to resize