Partager via


DataMigrationExtensions.CheckNameAvailabilityServiceAsync Méthode

Définition

Cette méthode vérifie si un nom de ressource de niveau supérieur proposé est valide et disponible.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability
  • IdServices_CheckNameAvailability d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>> CheckNameAvailabilityServiceAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityServiceAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>>
<Extension()>
Public Function CheckNameAvailabilityServiceAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, nameAvailabilityRequest As NameAvailabilityRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NameAvailabilityResponse))

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

location
AzureLocation

Région Azure de l’opération.

nameAvailabilityRequest
NameAvailabilityRequest

Nom demandé à valider.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

nameAvailabilityRequest a la valeur null.

S’applique à