Cancel Delete Async(IEnumerable<BatchClientBehavior>, CancellationToken) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A System.Threading.CancellationToken for controlling the lifetime of the asynchronous operation.
A System.Threading.Tasks.Task object that represents the asynchronous operation.
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.