コード例 #1
0
 /// <summary>
 /// The Begin Cancel Job Operation sends a request to cancel the job
 /// specified by the name passed in the arguments. This is an
 /// asynchronous operation. To determine whether the backend service
 /// has finished processing the request, call Get Cancel Operation
 /// Result by URL API.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.RecoveryServices.Backup.IJobOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. Resource group name of your recovery services vault.
 /// </param>
 /// <param name='resourceName'>
 /// Required. Name of your recovery services vault.
 /// </param>
 /// <param name='jobName'>
 /// Required.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Required. Request header parameters.
 /// </param>
 /// <returns>
 /// Base recovery job response for all the asynchronous operations.
 /// </returns>
 public static Task <BaseRecoveryServicesJobResponse> BeginCancelJobAsync(this IJobOperations operations, string resourceGroupName, string resourceName, string jobName, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.BeginCancelJobAsync(resourceGroupName, resourceName, jobName, customRequestHeaders, CancellationToken.None));
 }