TaskOperationsExtensions.Update(ITaskOperations, String, String, TaskConstraints, TaskUpdateOptions) Method

Definition

Updates the properties of the specified task.

public static Microsoft.Azure.Batch.Protocol.Models.TaskUpdateHeaders Update (this Microsoft.Azure.Batch.Protocol.ITaskOperations operations, string jobId, string taskId, Microsoft.Azure.Batch.Protocol.Models.TaskConstraints constraints = null, Microsoft.Azure.Batch.Protocol.Models.TaskUpdateOptions taskUpdateOptions = null);
static member Update : Microsoft.Azure.Batch.Protocol.ITaskOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.TaskConstraints * Microsoft.Azure.Batch.Protocol.Models.TaskUpdateOptions -> Microsoft.Azure.Batch.Protocol.Models.TaskUpdateHeaders

Parameters

operations
ITaskOperations

The operations group for this extension method.

jobId
String

The ID of the job containing the task.

taskId
String

The ID of the task to update.

constraints
TaskConstraints

Constraints that apply to this task. If omitted, the task is given the default constraints. For multi-instance tasks, updating the retention time applies only to the primary task and not subtasks.

taskUpdateOptions
TaskUpdateOptions

Additional parameters for the operation

Returns

TaskUpdateHeaders

Applies to