Share via


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

JobOperations.DeleteTask 方法

定义

删除指定的任务。

public void DeleteTask (string jobId, string taskId, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.DeleteTask : string * string * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub DeleteTask (jobId As String, taskId As String, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

参数

jobId
String

包含任务的作业的 id。

taskId
String

任务的 id。

additionalBehaviors
IEnumerable<BatchClientBehavior>

应用于 之后的 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

注解

这是一个阻止操作。 有关非阻塞等效项,请参阅 DeleteTaskAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

适用于