Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.Converters Namespace > DocumentConverterJobs Class : AbortAllJobs Method |
public void AbortAllJobs()
'Declaration
Public Sub AbortAllJobs()
'Usage
Dim instance As DocumentConverterJobs instance.AbortAllJobs()
public void abortAllJobs()
public: void AbortAllJobs();
Call this method to cause all running and pending jobs started with RunJobAsync to gracefully abort. Notice that this method will only triggers the abortion operation and returns immediately. You must still add synchronization code if your application logic needs to be informed when all jobs are completed/aborted. The JobCompleted event will occur for each job started with RunJobAsync but with AbortAllJobs being triggered, the DocumentConverterJob.Status value of each will be set to DocumentConverterJobStatus.Aborted.
For an example, refer to RunJobAsync.