Udostępnij za pośrednictwem


QuantumJobClient.GetJobAsync(String, CancellationToken) Method

Definition

Get job by id.

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

Parameters

jobId
String

Id of the job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId is null.

Applies to