Cancels the job with the specified id.
Namespace: AGI.Parallel.Client
Assembly: AGI.Parallel.Client (in AGI.Parallel.Client.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
public void CancelJob(
        Guid jobId,
        bool listenForCancellationEvent
)
Visual Basic
Public Sub CancelJob ( _
        jobId As Guid, _
        listenForCancellationEvent As Boolean _
)

Parameters

jobId
Type: System..::..Guid
The id of the job to cancel.
listenForCancellationEvent
Type: System..::..Boolean
if set to true, client will listen for the cancellation event. Otherwise, cancellation events can be ignored.

Implements

IJobScheduler..::..CancelJob(Guid, Boolean)

Exceptions

Exception Condition
AGI.Parallel.Client..::..JobSchedulerException Thrown if client is not connected to the job scheduler yet.

See Also