你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JobScheduleOperationsExtensions.UpdateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
汇报指定作业计划的属性。
public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.JobScheduleUpdateHeaders> UpdateAsync (this Microsoft.Azure.Batch.Protocol.IJobScheduleOperations operations, string jobScheduleId, Microsoft.Azure.Batch.Protocol.Models.JobScheduleUpdateParameter jobScheduleUpdateParameter, Microsoft.Azure.Batch.Protocol.Models.JobScheduleUpdateOptions jobScheduleUpdateOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Batch.Protocol.IJobScheduleOperations * string * Microsoft.Azure.Batch.Protocol.Models.JobScheduleUpdateParameter * Microsoft.Azure.Batch.Protocol.Models.JobScheduleUpdateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.JobScheduleUpdateHeaders>
<Extension()>
Public Function UpdateAsync (operations As IJobScheduleOperations, jobScheduleId As String, jobScheduleUpdateParameter As JobScheduleUpdateParameter, Optional jobScheduleUpdateOptions As JobScheduleUpdateOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JobScheduleUpdateHeaders)
参数
- operations
- IJobScheduleOperations
此扩展方法的操作组。
- jobScheduleId
- String
要更新的作业计划的 ID。
- jobScheduleUpdateParameter
- JobScheduleUpdateParameter
请求的参数。
- jobScheduleUpdateOptions
- JobScheduleUpdateOptions
操作的其他参数
- cancellationToken
- CancellationToken
取消标记。
返回
注解
这将完全替换作业计划的所有可更新属性。 例如,如果未使用此请求指定计划属性,则 Batch 服务将删除现有计划。 对作业计划的更改仅影响更新后计划创建的作业;当前运行的作业不受影响。