共用方式為


IJobOperations.CreateOrUpdateAsync Method

Definition

Creates a new Job with a user-provided job id, or updates an existing job, replacing its definition with that specified.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateResponse> CreateOrUpdateAsync (string jobId, Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateAsync : string * Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateResponse>
Public Function CreateOrUpdateAsync (jobId As String, parameters As JobCreateOrUpdateParameters, cancellationToken As CancellationToken) As Task(Of JobCreateOrUpdateResponse)

Parameters

jobId
String

Id of the job to create or update.

parameters
JobCreateOrUpdateParameters

Parameters specifying the job definition for a CreateOrUpdate Job operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

The CreateOrUpdate Job operation response.

Applies to