SqlExtensions.CheckSqlServerNameAvailability Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether a resource can be created with the specified name.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability
- Operation Id: Servers_CheckNameAvailability
- Default Api Version: 2023-05-01-preview
- Resource: SqlServerResource
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)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- content
- SqlNameAvailabilityContent
The name availability request parameters.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
subscriptionResource
or content
is null.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.