你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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.