Compartir a través de


SqlExtensions.CheckSqlServerNameAvailability Método

Definición

Determina si se puede crear un recurso con el nombre especificado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability
  • IdServers_CheckNameAvailability de operaciones
public static Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse> CheckSqlServerNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckSqlServerNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Sql.Models.SqlNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.Models.SqlNameAvailabilityResponse>
<Extension()>
Public Function CheckSqlServerNameAvailability (subscriptionResource As SubscriptionResource, content As SqlNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SqlNameAvailabilityResponse)

Parámetros

subscriptionResource
SubscriptionResource

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

content
SqlNameAvailabilityContent

Parámetros de solicitud de disponibilidad de nombres.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a