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

JobOperationsExtensions.CreateOrUpdateAsync 方法

定义

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

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateResponse> CreateOrUpdateAsync (this Microsoft.WindowsAzure.Scheduler.IJobOperations operations, string jobId, Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters parameters);
static member CreateOrUpdateAsync : Microsoft.WindowsAzure.Scheduler.IJobOperations * string * Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateResponse>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IJobOperations, jobId As String, parameters As JobCreateOrUpdateParameters) As Task(Of JobCreateOrUpdateResponse)

参数

operations
IJobOperations

对 Microsoft.WindowsAzure.Scheduler.IJobOperations 的引用。

jobId
String

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

parameters
JobCreateOrUpdateParameters

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

返回

CreateOrUpdate 作业操作响应。

适用于