Freigeben über


AgFoodPlatformExtensions.CheckNameAvailabilityLocationAsync Methode

Definition

Überprüft die Verfügbarkeit des Namens der Ressource mit dem angeforderten Ressourcennamen.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability
  • Vorgangs-IdLocations_CheckNameAvailability
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))

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

content
CheckNameAvailabilityContent

NameAvailabilityRequest-Objekt.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: