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

CertificateOperations.GetCertificate 方法

定义

注意

This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.

警告:此操作已弃用,将在 2024 年 2 月之后删除。 请改用 Azure KeyVault 扩展 。 获取指定的 Certificate

[System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)]
public Microsoft.Azure.Batch.Certificate GetCertificate (string thumbprintAlgorithm, string thumbprint, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
[<System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)>]
member this.GetCertificate : string * string * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> Microsoft.Azure.Batch.Certificate
Public Function GetCertificate (thumbprintAlgorithm As String, thumbprint As String, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing) As Certificate

参数

thumbprintAlgorithm
String

用于派生参数的 thumbprint 算法。 这必须是 sha1。

thumbprint
String

要获取的证书的指纹。

detailLevel
DetailLevel

一个 DetailLevel ,用于控制从服务检索哪些属性。

additionalBehaviors
IEnumerable<BatchClientBehavior>

在 和 detailLevel之后应用于 Batch 服务请求的CustomBehaviors实例集合BatchClientBehavior

返回

一个 Certificate ,包含有关Azure Batch帐户中指定证书的信息。

属性

注解

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

适用于