Share via


ComputeBatchModelFactory.BatchTaskCreateResult Method

Definition

Initializes a new instance of BatchTaskCreateResult.

public static Azure.Compute.Batch.BatchTaskCreateResult BatchTaskCreateResult(Azure.Compute.Batch.BatchTaskAddStatus status = default, string taskId = default, Azure.ETag? eTag = default, DateTimeOffset? lastModified = default, string location = default, Azure.Compute.Batch.BatchError error = default);
static member BatchTaskCreateResult : Azure.Compute.Batch.BatchTaskAddStatus * string * Nullable<Azure.ETag> * Nullable<DateTimeOffset> * string * Azure.Compute.Batch.BatchError -> Azure.Compute.Batch.BatchTaskCreateResult
Public Shared Function BatchTaskCreateResult (Optional status As BatchTaskAddStatus = Nothing, Optional taskId As String = Nothing, Optional eTag As Nullable(Of ETag) = Nothing, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional location As String = Nothing, Optional error As BatchError = Nothing) As BatchTaskCreateResult

Parameters

status
BatchTaskAddStatus

The status of the add Task request.

taskId
String

The ID of the Task for which this is the result.

eTag
Nullable<ETag>

The ETag of the Task, if the Task was successfully added. You can use this to detect whether the Task has changed between requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take effect only if nobody else has modified the Job in the meantime.

lastModified
Nullable<DateTimeOffset>

The last modified time of the Task.

location
String

The URL of the Task, if the Task was successfully added.

error
BatchError

The error encountered while attempting to add the Task.

Returns

A new BatchTaskCreateResult instance for mocking.

Applies to