Partilhar via


KeyVaultExtensions.CheckKeyVaultNameAvailabilityAsync Método

Definição

Verifica se o nome do cofre é válido e ainda não está em uso.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability
  • IdVaults_CheckNameAvailability de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultNameAvailabilityResult>> CheckKeyVaultNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.KeyVault.Models.KeyVaultNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckKeyVaultNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.KeyVault.Models.KeyVaultNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultNameAvailabilityResult>>
<Extension()>
Public Function CheckKeyVaultNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As KeyVaultNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultNameAvailabilityResult))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

content
KeyVaultNameAvailabilityContent

O nome do cofre.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a