ICloudJob.AddTaskAsync Method

Begins an asynchronous call to add a single task to the current Job.

Namespace: Microsoft.Azure.Batch
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)

Usage

'Usage
Dim instance As ICloudJob
Dim taskToAdd As ICloudTask
Dim allFileStagingArtifacts As ConcurrentDictionary(Of Type, IFileStagingArtifact)
Dim context As OperationContext
Dim additionalBehaviors As IEnumerable(Of BatchClientBehavior)
Dim returnValue As Task

returnValue = instance.AddTaskAsync(taskToAdd, allFileStagingArtifacts, context, additionalBehaviors)

Syntax

'Declaration
Function AddTaskAsync ( _
    taskToAdd As ICloudTask, _
    <OptionalAttribute> Optional allFileStagingArtifacts As ConcurrentDictionary(Of Type, IFileStagingArtifact) = Nothing, _
    <OptionalAttribute> Optional context As OperationContext = Nothing, _
    <OptionalAttribute> Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing _
) As Task
Task AddTaskAsync (
    ICloudTask taskToAdd,
    [OptionalAttribute] ConcurrentDictionary<Type,IFileStagingArtifact> allFileStagingArtifacts,
    [OptionalAttribute] OperationContext context,
    [OptionalAttribute] IEnumerable<BatchClientBehavior> additionalBehaviors
)
Task^ AddTaskAsync (
    ICloudTask^ taskToAdd, 
    [OptionalAttribute] ConcurrentDictionary<Type^, IFileStagingArtifact^>^ allFileStagingArtifacts, 
    [OptionalAttribute] OperationContext^ context, 
    [OptionalAttribute] IEnumerable<BatchClientBehavior^>^ additionalBehaviors
)
Task AddTaskAsync (
    ICloudTask taskToAdd, 
    /** @attribute OptionalAttribute() */ ConcurrentDictionary<Type,IFileStagingArtifact> allFileStagingArtifacts, 
    /** @attribute OptionalAttribute() */ OperationContext context, 
    /** @attribute OptionalAttribute() */ IEnumerable<BatchClientBehavior> additionalBehaviors
)
function AddTaskAsync (
    taskToAdd : ICloudTask, 
    allFileStagingArtifacts : ConcurrentDictionary<Type,IFileStagingArtifact>, 
    context : OperationContext, 
    additionalBehaviors : IEnumerable<BatchClientBehavior>
) : Task

Parameters

  • taskToAdd

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ICloudJob Interface ICloudJob Members
Microsoft.Azure.Batch Namespace