你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IJobOperations.CreateOrUpdateAsync 方法

定义

使用用户提供的作业 ID 创建新的作业,或更新现有作业,将其定义替换为指定的。

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)

参数

jobId
String

要创建或更新的作业的 ID。

parameters
JobCreateOrUpdateParameters

指定 CreateOrUpdate 作业操作的作业定义的参数。

cancellationToken
CancellationToken

取消标记。

返回

CreateOrUpdate 作业操作响应。

适用于