Share via


JobOperations.GetJobTaskCounts Method

Definition

Gets the task counts for the specified job.

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

Parameters

jobId
String

The id of the job.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.

Returns

A TaskCounts object containing the task counts for the job.

Remarks

This is a blocking operation. For a non-blocking equivalent, see GetJobTaskCountsAsync(String, IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to