←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.Documents.Converters.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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents.Converters Assembly