Sdílet prostřednictvím


Certificate.CancelDelete(IEnumerable<BatchClientBehavior>) 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 void CancelDelete (System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.CancelDelete : seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub CancelDelete (Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

Parameters

additionalBehaviors
IEnumerable<BatchClientBehavior>

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

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 Delete(IEnumerable<BatchClientBehavior>).

This is a blocking operation. For a non-blocking equivalent, see CancelDeleteAsync(IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to