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

DisableJobSchedule() public method

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

            WriteVerbose(string.Format(Resources.DisableJobSchedule, jobScheduleId));

            JobScheduleOperations jobScheduleOperations = context.BatchOMClient.JobScheduleOperations;
            jobScheduleOperations.DisableJobSchedule(jobScheduleId, additionBehaviors);
        }
BatchClient