Certificate.CancelDeleteAsync(IEnumerable<BatchClientBehavior>, CancellationToken) Method

Definition

Cancels a failed deletion of the certificate. This can be done only when the certificate is in the DeleteFailed state, and restores the certificate to the Active state.

public System.Threading.Tasks.Task CancelDeleteAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = null, System.Threading.CancellationToken cancellationToken = null);
member this.CancelDeleteAsync : seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

additionalBehaviors
System.Collections.Generic.IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken for controlling the lifetime of the asynchronous operation.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task object that represents the asynchronous operation.

Remarks

If you still wish to delete the certificate (instead of returning it to Active), you do not need to cancel the failed deletion. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate (see DeleteAsync(IEnumerable<BatchClientBehavior>, CancellationToken).

The cancel delete operation runs asynchronously.

Applies to