Partilhar via


ComputeBatchModelFactory.BatchTaskInfo Method

Definition

Initializes a new instance of BatchTaskInfo.

public static Azure.Compute.Batch.BatchTaskInfo BatchTaskInfo (string taskUrl = default, string jobId = default, string taskId = default, int? subtaskId = default, Azure.Compute.Batch.BatchTaskState taskState = default, Azure.Compute.Batch.BatchTaskExecutionInfo executionInfo = default);
static member BatchTaskInfo : string * string * string * Nullable<int> * Azure.Compute.Batch.BatchTaskState * Azure.Compute.Batch.BatchTaskExecutionInfo -> Azure.Compute.Batch.BatchTaskInfo
Public Shared Function BatchTaskInfo (Optional taskUrl As String = Nothing, Optional jobId As String = Nothing, Optional taskId As String = Nothing, Optional subtaskId As Nullable(Of Integer) = Nothing, Optional taskState As BatchTaskState = Nothing, Optional executionInfo As BatchTaskExecutionInfo = Nothing) As BatchTaskInfo

Parameters

taskUrl
String

The URL of the Task.

jobId
String

The ID of the Job to which the Task belongs.

taskId
String

The ID of the Task.

subtaskId
Nullable<Int32>

The ID of the subtask if the Task is a multi-instance Task.

taskState
BatchTaskState

The current state of the Task.

executionInfo
BatchTaskExecutionInfo

Information about the execution of the Task.

Returns

A new BatchTaskInfo instance for mocking.

Applies to