←Select platform

JobStarted Event

Summary

Occurs when a job is about to start.

Syntax
C#
VB
Java
C++
public event EventHandler<DocumentConverterJobEventArgs> JobStarted 
Public Event JobStarted As EventHandler(Of Leadtools.Document.Converter.DocumentConverterJobEventArgs) 
public:  
   event EventHandler<Leadtools::Documents::Converters::DocumentConverterJobEventArgs^>^ JobStarted 
public void addJobStartedListener(DocumentConverterJobEventListener listener) 
public void removeJobStartedListener(DocumentConverterJobEventListener listener) 

Remarks

This event will occur when RunJob or RunJobAsync.

To abort pending jobs in a multi-threaded application using DocumentConverter, you subscribe to this event and set the value of Status to DocumentConverterJobStatus.Abort. You can also examine Job and only abort certain jobs depending on your application logic.

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.

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.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Converter Assembly