ComputeBatchModelFactory.BatchTaskCounts 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.
Initializes a new instance of BatchTaskCounts.
public static Azure.Compute.Batch.BatchTaskCounts BatchTaskCounts (int active = 0, int running = 0, int completed = 0, int succeeded = 0, int failed = 0);
static member BatchTaskCounts : int * int * int * int * int -> Azure.Compute.Batch.BatchTaskCounts
Public Shared Function BatchTaskCounts (Optional active As Integer = 0, Optional running As Integer = 0, Optional completed As Integer = 0, Optional succeeded As Integer = 0, Optional failed As Integer = 0) As BatchTaskCounts
Parameters
- active
- Int32
The number of Tasks in the active state.
- running
- Int32
The number of Tasks in the running or preparing state.
- completed
- Int32
The number of Tasks in the completed state.
- succeeded
- Int32
The number of Tasks which succeeded. A Task succeeds if its result (found in the executionInfo property) is 'success'.
- failed
- Int32
The number of Tasks which failed. A Task fails if its result (found in the executionInfo property) is 'failure'.
Returns
A new BatchTaskCounts instance for mocking.
Applies to
Azure SDK for .NET