JobOperationsExtensions.GetTaskCountsAsync 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 the Task counts for the specified Job.
public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.TaskCountsResult> GetTaskCountsAsync (this Microsoft.Azure.Batch.Protocol.IJobOperations operations, string jobId, Microsoft.Azure.Batch.Protocol.Models.JobGetTaskCountsOptions jobGetTaskCountsOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTaskCountsAsync : Microsoft.Azure.Batch.Protocol.IJobOperations * string * Microsoft.Azure.Batch.Protocol.Models.JobGetTaskCountsOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.TaskCountsResult>
<Extension()>
Public Function GetTaskCountsAsync (operations As IJobOperations, jobId As String, Optional jobGetTaskCountsOptions As JobGetTaskCountsOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TaskCountsResult)
Parameters
- operations
- IJobOperations
The operations group for this extension method.
- jobId
- String
The ID of the Job.
- jobGetTaskCountsOptions
- JobGetTaskCountsOptions
Additional parameters for the operation
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Task counts provide a count of the Tasks by active, running or completed Task state, and a count of Tasks which succeeded or failed. Tasks in the preparing state are counted as running. Note that the numbers returned may not always be up to date. If you need exact task counts, use a list query.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應