Dela via


QuantumJobClient.CancelJobAsync(String, CancellationToken) Method

Definition

Cancel a job.

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

Parameters

jobId
String

Id of the job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId is null.

Applies to