JobOperations.EnableJobAsync Method (String, IEnumerable<BatchClientBehavior>)
Enables the specified job, allowing new tasks to run.
Namespace: Microsoft.Azure.Batch
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Syntax
public Task EnableJobAsync(
string jobId,
IEnumerable<BatchClientBehavior> additionalBehaviors = null
)
public:
Task^ EnableJobAsync(
String^ jobId,
IEnumerable<BatchClientBehavior^>^ additionalBehaviors = null
)
member EnableJobAsync :
jobId:string *
additionalBehaviors:IEnumerable<BatchClientBehavior> = null -> Task
Public Function EnableJobAsync (
jobId As String,
additionalBehaviors As IEnumerable(Of BatchClientBehavior)
) As Task
Parameters
jobId
Type: System.StringThe id of the job.
additionalBehaviors
Type: System.Collections.Generic.IEnumerable<BatchClientBehavior>A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.
Return Value
Type: System.Threading.Tasks.Task
A Task that represents the asynchronous operation.
Remarks
The enable operation runs asynchronously.
See Also
JobOperations Class
Microsoft.Azure.Batch Namespace
Return to top