←Select platform

JobCompleted Event

Summary

Occurs when a job is completed or aborted.

Syntax
C#
VB
C++
Java
public event EventHandler<DocumentConverterJobEventArgs> JobCompleted 
Public Event JobCompleted As EventHandler(Of Leadtools.Document.Converter.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

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Converter Assembly