Share via


TaskOperationsExtensions.ListNextAsync 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>> ListNextAsync (this Microsoft.Azure.Batch.Protocol.ITaskOperations operations, string nextPageLink, Microsoft.Azure.Batch.Protocol.Models.TaskListNextOptions taskListNextOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListNextAsync : Microsoft.Azure.Batch.Protocol.ITaskOperations * string * Microsoft.Azure.Batch.Protocol.Models.TaskListNextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Batch.Protocol.Models.CloudTask>>
<Extension()>
Public Function ListNextAsync (operations As ITaskOperations, nextPageLink As String, Optional taskListNextOptions As TaskListNextOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of CloudTask))

Parameters

operations
ITaskOperations

The operations group for this extension method.

nextPageLink
String

The NextLink from the previous successful call to List operation.

taskListNextOptions
TaskListNextOptions

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