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

DeleteJobSchedule() 공개 메소드

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

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

Usage Example

예제 #1
0
        /// <summary>
        /// Deletes a job schedule used in a Scenario test.
        /// </summary>
        public static void DeleteJobSchedule(BatchController controller, BatchAccountContext context, string jobScheduleId)
        {
            RequestInterceptor interceptor = CreateHttpRecordingInterceptor();

            BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor };
            BatchClient           client    = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient);

            client.DeleteJobSchedule(context, jobScheduleId, behaviors);
        }
All Usage Examples Of Microsoft.Azure.Commands.Batch.Models.BatchClient::DeleteJobSchedule
BatchClient