Compartir a través de


KeyVaultExtensions.CheckKeyVaultNameAvailabilityAsync Método

Definición

Comprueba que el nombre del almacén es válido y que aún no está en uso.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability
  • IdVaults_CheckNameAvailability de operación
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

Instancia SubscriptionResource en la que se ejecutará el método.

content
KeyVaultNameAvailabilityContent

Nombre del almacén.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a