Sdílet prostřednictvím


TaskOperationsExtensions.ListSubtasksAsync Method

Definition

Lists all of the subtasks that are associated with the specified multi-instance Task.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.CloudTaskListSubtasksResult> ListSubtasksAsync (this Microsoft.Azure.Batch.Protocol.ITaskOperations operations, string jobId, string taskId, Microsoft.Azure.Batch.Protocol.Models.TaskListSubtasksOptions taskListSubtasksOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListSubtasksAsync : Microsoft.Azure.Batch.Protocol.ITaskOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.TaskListSubtasksOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.CloudTaskListSubtasksResult>
<Extension()>
Public Function ListSubtasksAsync (operations As ITaskOperations, jobId As String, taskId As String, Optional taskListSubtasksOptions As TaskListSubtasksOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CloudTaskListSubtasksResult)

Parameters

operations
ITaskOperations

The operations group for this extension method.

jobId
String

The ID of the Job.

taskId
String

The ID of the Task.

taskListSubtasksOptions
TaskListSubtasksOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

If the Task is not a multi-instance Task then this returns an empty collection.

Applies to