Dela via


QuantumJobClient.CancelJob(String, CancellationToken) Method

Definition

Cancel a job.

public virtual Azure.Response CancelJob (string jobId, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelJob : string * System.Threading.CancellationToken -> Azure.Response
override this.CancelJob : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function CancelJob (jobId As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

jobId
String

Id of the job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId is null.

Applies to