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

KeyVaultClientExtensions.GetCertificateAsync 方法

定义

重载

GetCertificateAsync(IKeyVaultClient, String, CancellationToken)

获取证书。

GetCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

获取证书。

GetCertificateAsync(IKeyVaultClient, String, String, String, CancellationToken)

获取有关证书的信息。

GetCertificateAsync(IKeyVaultClient, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

获取证书。

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> GetCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string certificateIdentifier, System.Threading.CancellationToken cancellationToken = default);
static member GetCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>
<Extension()>
Public Function GetCertificateAsync (operations As IKeyVaultClient, certificateIdentifier As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CertificateBundle)

参数

operations
IKeyVaultClient
certificateIdentifier
String

证书的 URL。

cancellationToken
CancellationToken

可选取消令牌

返回

检索到的证书

适用于

GetCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

获取证书。

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> GetCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, System.Threading.CancellationToken cancellationToken = default);
static member GetCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>
<Extension()>
Public Function GetCertificateAsync (operations As IKeyVaultClient, vaultBaseUrl As String, certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CertificateBundle)

参数

operations
IKeyVaultClient
vaultBaseUrl
String

包含证书的保管库的 URL。

certificateName
String

给定保管库中证书的名称。

cancellationToken
CancellationToken

可选取消令牌

返回

检索到的证书

适用于

GetCertificateAsync(IKeyVaultClient, String, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

获取有关证书的信息。

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> GetCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, string certificateVersion, System.Threading.CancellationToken cancellationToken = default);
static member GetCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>
<Extension()>
Public Function GetCertificateAsync (operations As IKeyVaultClient, vaultBaseUrl As String, certificateName As String, certificateVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CertificateBundle)

参数

operations
IKeyVaultClient

此扩展方法的操作组。

vaultBaseUrl
String

保管库名称,例如 https://myvault.vault.azure.net

certificateName
String

给定保管库中证书的名称。

certificateVersion
String

证书的版本。

cancellationToken
CancellationToken

取消标记。

返回

注解

获取有关特定证书的信息。 此操作需要证书/获取权限。

适用于