Leadtools.Cloud.Job Namespace > JobBase Class : SetFailureStatus Method |
public JobStatus SetFailureStatus( string jobID, int failedErrorID, string failedMessage, string jobMetadata )
'Declaration Public Function SetFailureStatus( _ ByVal jobID As String, _ ByVal failedErrorID As Integer, _ ByVal failedMessage As String, _ ByVal jobMetadata As String _ ) As JobStatus
'Usage Dim instance As JobBase Dim jobID As String Dim failedErrorID As Integer Dim failedMessage As String Dim jobMetadata As String Dim value As JobStatus value = instance.SetFailureStatus(jobID, failedErrorID, failedMessage, jobMetadata)
public JobStatus SetFailureStatus( string jobID, int failedErrorID, string failedMessage, string jobMetadata )
function Leadtools.Cloud.Job.JobBase.SetFailureStatus( jobID , failedErrorID , failedMessage , jobMetadata )
public: JobStatus SetFailureStatus( String^ jobID, int failedErrorID, String^ failedMessage, String^ jobMetadata )
Use this method to set the status of a job to Jobstatus.Failed. 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.
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