Dela via


QuantumJobClient.GetJob(String, CancellationToken) Method

Definition

Get job by id.

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

Parameters

jobId
String

Id of the job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId is null.

Applies to