Udostępnij za pośrednictwem


QuantumJobClient.CreateJob(String, JobDetails, CancellationToken) Method

Definition

Create a job.

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

Parameters

jobId
String

Id of the job.

job
JobDetails

The complete metadata of the job to submit.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId or job is null.

Applies to