Compartilhar via


CertificateClient.SetContacts 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 Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>> SetContacts (System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Certificates.CertificateContact> contacts, System.Threading.CancellationToken cancellationToken = default);
abstract member SetContacts : seq<Azure.Security.KeyVault.Certificates.CertificateContact> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>
override this.SetContacts : seq<Azure.Security.KeyVault.Certificates.CertificateContact> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IList<Azure.Security.KeyVault.Certificates.CertificateContact>>
Public Overridable Function SetContacts (contacts As IEnumerable(Of CertificateContact), Optional cancellationToken As CancellationToken = Nothing) As 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