IJobOperations.CreateOrUpdateAsync Method (String, JobCreateOrUpdateParameters, CancellationToken)
Creates a new Job with a user-provided job id, or updates an existing job, replacing its definition with that specified.
Namespace: Microsoft.WindowsAzure.Scheduler
Assembly: Microsoft.WindowsAzure.Management.Scheduler (in Microsoft.WindowsAzure.Management.Scheduler.dll)
Syntax
Task<JobCreateOrUpdateResponse> CreateOrUpdateAsync(
string jobId,
JobCreateOrUpdateParameters parameters,
CancellationToken cancellationToken
)
Task<JobCreateOrUpdateResponse^>^ CreateOrUpdateAsync(
String^ jobId,
JobCreateOrUpdateParameters^ parameters,
CancellationToken cancellationToken
)
abstract CreateOrUpdateAsync :
jobId:string *
parameters:JobCreateOrUpdateParameters *
cancellationToken:CancellationToken -> Task<JobCreateOrUpdateResponse>
Function CreateOrUpdateAsync (
jobId As String,
parameters As JobCreateOrUpdateParameters,
cancellationToken As CancellationToken
) As Task(Of JobCreateOrUpdateResponse)
Parameters
jobId
Type: System.StringId of the job to create or update.
parameters
Type: Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParametersParameters specifying the job definition for a CreateOrUpdate Job operation.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<JobCreateOrUpdateResponse>
The CreateOrUpdate Job operation response.
See Also
IJobOperations Interface
Microsoft.WindowsAzure.Scheduler Namespace
Return to top