TaskOperationsExtensions.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets information about the specified Task.
public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.CloudTask> GetAsync (this Microsoft.Azure.Batch.Protocol.ITaskOperations operations, string jobId, string taskId, Microsoft.Azure.Batch.Protocol.Models.TaskGetOptions taskGetOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Batch.Protocol.ITaskOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.TaskGetOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.CloudTask>
<Extension()>
Public Function GetAsync (operations As ITaskOperations, jobId As String, taskId As String, Optional taskGetOptions As TaskGetOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CloudTask)
Parameters
- operations
- ITaskOperations
The operations group for this extension method.
- jobId
- String
The ID of the Job that contains the Task.
- taskId
- String
The ID of the Task to get information about.
- taskGetOptions
- TaskGetOptions
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
Azure SDK for .NET