Freigeben über


JobOperations.GetJobTaskCountsAsync Methode

Definition

Ruft die Aufgabenanzahl für den angegebenen Auftrag ab.

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

Parameter

jobId
String

Die ID des Auftrags.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die auf die Batch-Dienstanforderung nach CustomBehaviorsangewendet werden.

cancellationToken
CancellationToken

Ein CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein TaskCounts -Objekt, das die Aufgabenanzahl für den Auftrag enthält.

Hinweise

Der Vorgang get job task counts wird asynchron ausgeführt.

Gilt für: