Partager via


AgFoodPlatformExtensions.CheckNameAvailabilityLocationAsync Méthode

Définition

Vérifie la disponibilité du nom de la ressource avec le nom de la ressource demandée.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability
  • IdLocations_CheckNameAvailability d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AgFoodPlatform.Models.CheckNameAvailabilityResponse>> CheckNameAvailabilityLocationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AgFoodPlatform.Models.CheckNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityLocationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.AgFoodPlatform.Models.CheckNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AgFoodPlatform.Models.CheckNameAvailabilityResponse>>
<Extension()>
Public Function CheckNameAvailabilityLocationAsync (subscriptionResource As SubscriptionResource, content As CheckNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckNameAvailabilityResponse))

Paramètres

subscriptionResource
SubscriptionResource

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

content
CheckNameAvailabilityContent

Objet NameAvailabilityRequest.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

content a la valeur null.

S’applique à