Compartilhar via


CertificateClient.SetContactsAsync Método

Definição

Define os certificados CertificateContactpara o cofre de chaves, substituindo todos os contatos existentes. Essa operação requer a permissão certificates/managecontacts.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>> SetContactsAsync (System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default);
abstract member SetContactsAsync : seq<Azure.Security.KeyVault.Certificates.CertificateContact> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>>
override this.SetContactsAsync : seq<Azure.Security.KeyVault.Certificates.CertificateContact> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>>
Public Overridable Function SetContactsAsync (contacts As IEnumerable(Of CertificateContact), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IList(Of CertificateContact)))

Parâmetros

contacts
IEnumerable<CertificateContact>

Os contatos do certificado para o cofre.

cancellationToken
CancellationToken

Um CancellationToken que controla o tempo de vida da solicitação.

Retornos

Os contatos de certificado atualizados do cofre.

Exceções

contacts é nulo.

Aplica-se a