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

DeleteJobSchedule() public method

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.
return 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