CancelJob Method

IIS 7.0

Cancels a job.

Namespace:  Microsoft.Web.Media.TransformManager
Assembly:  Microsoft.Web.Media.TransformManager.ServiceLibrary (in Microsoft.Web.Media.TransformManager.ServiceLibrary.dll)

[OperationContractAttribute]
JobStatus CancelJob(
	JobDetails jobDetails
)

Parameters

jobDetails
Type: Microsoft.Web.Media.TransformManager..::..JobDetails
An object that contains the ID of the job to cancel and the work queue name that the job is in.

Return Value

Type: Microsoft.Web.Media.TransformManager..::..JobStatus
The JobStatus object that corresponds to the action.

The job can be canceled when it is either running or queued (submitted but not yet started). The method will usually return "Cancelled", but other possible values are "Finished" and "Failed". These other return values can occur if the job reaches these states before the cancel command reaches the scheduler.

Show: