共用方式為


KeyVaultClientExtensions.GetCertificateAsync Method

Definition

Overloads

GetCertificateAsync(IKeyVaultClient, String, CancellationToken)

Gets a certificate.

GetCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Gets a certificate.

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

Gets information about a certificate.

GetCertificateAsync(IKeyVaultClient, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

Gets a certificate.

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)

Parameters

operations
IKeyVaultClient
certificateIdentifier
String

The URL for the certificate.

cancellationToken
CancellationToken

Optional cancellation token

Returns

The retrieved certificate

Applies to

GetCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

Gets a certificate.

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)

Parameters

operations
IKeyVaultClient
vaultBaseUrl
String

The URL for the vault containing the certificate.

certificateName
String

The name of the certificate in the given vault.

cancellationToken
CancellationToken

Optional cancellation token

Returns

The retrieved certificate

Applies to

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

Source:
KeyVaultClientExtensions.cs

Gets information about a certificate.

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)

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String

The vault name, for example https://myvault.vault.azure.net.

certificateName
String

The name of the certificate in the given vault.

certificateVersion
String

The version of the certificate.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Gets information about a specific certificate. This operation requires the certificates/get permission.

Applies to