Microsoft.Azure.Commands.Batch.Models.BatchClient.TerminateJobSchedule C# (CSharp) 메소드

TerminateJobSchedule() 공개 메소드

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

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

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