TaskOperationsExtensions.ListAsync Method

Definition

Lists all of the Tasks that are associated with the specified Job.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Batch.Protocol.Models.CloudTask>> ListAsync (this Microsoft.Azure.Batch.Protocol.ITaskOperations operations, string jobId, Microsoft.Azure.Batch.Protocol.Models.TaskListOptions taskListOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Batch.Protocol.ITaskOperations * string * Microsoft.Azure.Batch.Protocol.Models.TaskListOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Batch.Protocol.Models.CloudTask>>
<Extension()>
Public Function ListAsync (operations As ITaskOperations, jobId As String, Optional taskListOptions As TaskListOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of CloudTask))

Parameters

operations
ITaskOperations

The operations group for this extension method.

jobId
String

The ID of the Job.

taskListOptions
TaskListOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

For multi-instance Tasks, information such as affinityId, executionInfo and nodeInfo refer to the primary Task. Use the list subtasks API to retrieve information about subtasks.

Applies to