你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Certificate.CancelDelete(IEnumerable<BatchClientBehavior>) 方法

定义

取消失败的证书删除。 仅当证书处于 DeleteFailed 状态,并将证书还原到 Active 状态时,才能执行此操作。

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)

参数

additionalBehaviors
IEnumerable<BatchClientBehavior>

在 之后应用于 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

注解

如果仍希望删除证书 (而不是将其返回到活动) ,则无需取消失败的删除。 必须确保证书未由任何资源使用,然后可以重试删除证书 (请参阅 Delete(IEnumerable<BatchClientBehavior>)

这是一个阻止操作。 有关非阻塞等效项,请参阅 CancelDeleteAsync(IEnumerable<BatchClientBehavior>, CancellationToken)

适用于