LEADTOOLS Cloud (Leadtools.Cloud.Job assembly)
LEAD Technologies, Inc

SetCompletedStatus Method






ID (GUID) of the job to update.
Metadata which contains information on how this job should be processed.
Sets the status of a job to Jobstatus.Completed.
Syntax
public JobStatus SetCompletedStatus( 
   string jobID,
   string jobMetadata
)
'Declaration
 
Public Function SetCompletedStatus( _
   ByVal jobID As String, _
   ByVal jobMetadata As String _
) As JobStatus
'Usage
 
Dim instance As JobBase
Dim jobID As String
Dim jobMetadata As String
Dim value As JobStatus
 
value = instance.SetCompletedStatus(jobID, jobMetadata)
public JobStatus SetCompletedStatus( 
   string jobID,
   string jobMetadata
)
 function Leadtools.Cloud.Job.JobBase.SetCompletedStatus( 
   jobID ,
   jobMetadata 
)
public:
JobStatus SetCompletedStatus( 
   String^ jobID,
   String^ jobMetadata
) 

Parameters

jobID
ID (GUID) of the job to update.
jobMetadata
Metadata which contains information on how this job should be processed.

Return Value

A JobStatus that represents the new status of the specified job.
Remarks

Use this method to set the status of a job to Jobstatus.Completed indicating the job has been successfully processed. If the job is not found, Jobstatus.NotFound will be returned.

If an empty string is passed for the jobMetadata parameter, the existing job metadata for the job is maintained. For more information on how the jobMetadata property is used, refer to Understanding The LEADTOOLS Cloud Database.

Example
Refer to the OCRCloudDemo. Depending on the programming language being used, the demo will be found in either the <installationdir>\Examples\DotNet\CS\OCRCloudDemo directory. or the <installationdir>\Examples\DotNet\VB\OCRCloudDemo directory. The <installationdir> represents the directory in which you installed the LEADTOOLS toolkit.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

JobBase Class
JobBase Members
Programming with LEADTOOLS Cloud SDK
Creating Cloud Worker Assemblies
Understanding The LEADTOOLS Cloud Database

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.