Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.29
|
Leadtools.JobProcessor.Job Namespace > JobBase Class : UpdatePercentage Method |
public bool UpdatePercentage( string jobID, int percentage, string workerMetadata )
'Declaration Public Function UpdatePercentage( _ ByVal jobID As String, _ ByVal percentage As Integer, _ ByVal workerMetadata As String _ ) As Boolean
'Usage Dim instance As JobBase Dim jobID As String Dim percentage As Integer Dim workerMetadata As String Dim value As Boolean value = instance.UpdatePercentage(jobID, percentage, workerMetadata)
public: bool UpdatePercentage( String^ jobID, int percentage, String^ workerMetadata )
A value of false indicates the job was either aborted or deleted by an administrator or client.
Failure to update the progress can cause the windows service to assume the process is hung. This will result in the OnJobTerminated method to be called and the process will be terminated.
Progress should be posted at the interval specified by the percentage parameter.
If an empty string is passed for the workerMetadata parameter, the existing worker metadata for the job is maintained. For more information on how the workerMetadata property is used, refer to Understanding The LEADTOOLS Job Processor Database.