共用方式為


ICertificateOperations.DeleteWithHttpMessagesAsync 方法

定義

警告

This operation is deprecated. Please do not use it any longer.

刪除指定的憑證。

[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Management.Batch.Models.CertificateDeleteHeaders>> DeleteWithHttpMessagesAsync (string resourceGroupName, string accountName, string certificateName, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This operation is deprecated. Please do not use it any longer.")>]
abstract member DeleteWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Management.Batch.Models.CertificateDeleteHeaders>>
Public Function DeleteWithHttpMessagesAsync (resourceGroupName As String, accountName As String, certificateName As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of CertificateDeleteHeaders))

參數

resourceGroupName
String

包含 Batch 帳戶的資源群組名稱。

accountName
String

Batch 帳戶的名稱。

certificateName
String

憑證的識別碼。 這必須由以虛線分隔的演算法和指紋組成,而且必須符合要求中的憑證資料。 例如 SHA1-a3d1c5。

customHeaders
Dictionary<String,List<String>>

將新增至要求的標頭。

cancellationToken
CancellationToken

取消語彙基元。

傳回

屬性

例外狀況

當作業傳回不正確狀態碼時擲回

當必要參數為 Null 時擲回

備註

警告:此作業已被取代,將在 2024 年 2 月之後移除。 請改用 [Azure KeyVault 擴充功能] (https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) 。

適用於