Partilhar via


SqlExtensions.CheckSqlServerNameAvailabilityAsync Método

Definição

Determina se um recurso pode ser criado com o nome especificado.

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

Parâmetros

subscriptionResource
SubscriptionResource

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

content
SqlNameAvailabilityContent

Os parâmetros de solicitação de disponibilidade de nome.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a