←Select platform

JobStarted Event

Summary

Occurs when a job is about to start.

Syntax
C#
C++/CLI
Java
Python
public event EventHandler<DocumentConverterJobEventArgs> JobStarted 
public:  
   event EventHandler<Leadtools::Documents::Converters::DocumentConverterJobEventArgs^>^ JobStarted 
public void addJobStartedListener(DocumentConverterJobEventListener listener) 
public void removeJobStartedListener(DocumentConverterJobEventListener listener) 
def JobStarted(sender,e): # sender: DocumentConverterJobs e: DocumentConverterJobEventArgs 
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.

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

Target Platforms

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

Leadtools.Document.Converter Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.