DeleteJob Method
Summary
Deletes the specified job from the Job Processor database.
Example
using LeadtoolsJobProcessorExamples.JobService;
public void DeleteJob(string jobID)
{
using (JobServiceClient jobServiceClient = new JobServiceClient())
{
DeleteJobRequest deleteJobRequest = new DeleteJobRequest();
deleteJobRequest.ID = jobID;
DeleteJobResponse deleteJobResponse = jobServiceClient.DeleteJob(deleteJobRequest);
if (deleteJobResponse.IsDeleted)
Console.WriteLine("The job was successfully deleted.");
else
Console.WriteLine("The job was not deleted.");
}
}
Public Sub DeleteJob(ByVal jobID As String)
Using jobServiceClient As JobServiceClient = New JobServiceClient()
Dim deleteJobRequest As DeleteJobRequest = New DeleteJobRequest()
deleteJobRequest.ID = jobID
Dim deleteJobResponse As DeleteJobResponse = jobServiceClient.DeleteJob(deleteJobRequest)
If deleteJobResponse.IsDeleted Then
Console.WriteLine("The job was successfully deleted.")
Else
Console.WriteLine("The job was not deleted.")
End If
End Using
End Sub