Microsoft.Azure.Commands.Batch.Models.BatchClient.EnableJobSchedule C# (CSharp) Méthode

EnableJobSchedule() public méthode

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

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

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