ComputeBatchModelFactory.BatchTaskAddResult 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 BatchTaskAddResult.
public static Azure.Compute.Batch.BatchTaskAddResult BatchTaskAddResult (Azure.Compute.Batch.BatchTaskAddStatus status = default, string taskId = default, string eTag = default, DateTimeOffset? lastModified = default, string location = default, Azure.Compute.Batch.BatchError error = default);
static member BatchTaskAddResult : Azure.Compute.Batch.BatchTaskAddStatus * string * string * Nullable<DateTimeOffset> * string * Azure.Compute.Batch.BatchError -> Azure.Compute.Batch.BatchTaskAddResult
Public Shared Function BatchTaskAddResult (Optional status As BatchTaskAddStatus = Nothing, Optional taskId As String = Nothing, Optional eTag As String = Nothing, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional location As String = Nothing, Optional error As BatchError = Nothing) As BatchTaskAddResult
Parameters
- status
- BatchTaskAddStatus
The status of the add Task request.
- taskId
- String
The ID of the Task for which this is the result.
- eTag
- String
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 BatchTaskAddResult instance for mocking.
Applies to
Azure SDK for .NET