CloudJob.GetTaskCounts(IEnumerable<BatchClientBehavior>) Method

Definition

Gets the task counts for the job.

public Microsoft.Azure.Batch.TaskCounts GetTaskCounts (System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = null);
member this.GetTaskCounts : seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.TaskCounts
Public Function GetTaskCounts (Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = null) As TaskCounts

Parameters

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 GetTaskCountsAsync(IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to