Microsoft.Azure.Commands.Batch.Models.BatchClient.EnableJob C# (CSharp) Method

EnableJob() public method

Enables the specified job.
public EnableJob ( BatchAccountContext context, string jobId, IEnumerable additionBehaviors = null ) : void
context BatchAccountContext The account to use.
jobId string The id of the job to enable.
additionBehaviors IEnumerable Additional client behaviors to perform.
return void
        public void EnableJob(BatchAccountContext context, string jobId, IEnumerable<BatchClientBehavior> additionBehaviors = null)
        {
            if (string.IsNullOrWhiteSpace(jobId))
            {
                throw new ArgumentNullException("jobId");
            }

            WriteVerbose(string.Format(Resources.EnableJob, jobId));

            JobOperations jobOperations = context.BatchOMClient.JobOperations;
            jobOperations.EnableJob(jobId, additionBehaviors);
        }
BatchClient