Aracılığıyla paylaş


CertificateClient.GetCertificatePolicy(String, CancellationToken) Method

Definition

Retrieves the CertificatePolicy of the specified certificate. This operation requires the certificate/get permission.

public virtual Azure.Response<Azure.Security.KeyVault.Certificates.CertificatePolicy> GetCertificatePolicy (string certificateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCertificatePolicy : string * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.CertificatePolicy>
override this.GetCertificatePolicy : string * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.CertificatePolicy>
Public Overridable Function GetCertificatePolicy (certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CertificatePolicy)

Parameters

certificateName
String

The name of the certificate whose policy should be retrieved.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The CertificatePolicy of the specified certificate.

Exceptions

certificateName is empty.

certificateName is null.

Applies to