Freigeben über


EnergyServicesExtensions.CheckNameAvailabilityLocation Methode

Definition

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

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/checkNameAvailability
  • Vorgang IdLocations_CheckNameAvailability
public static Azure.Response<Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityResult> CheckNameAvailabilityLocation (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityLocation : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityResult>
<Extension()>
Public Function CheckNameAvailabilityLocation (subscriptionResource As SubscriptionResource, content As EnergyServiceNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of EnergyServiceNameAvailabilityResult)

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance, für den die Methode ausgeführt wird.

content
EnergyServiceNameAvailabilityContent

NameAvailabilityRequest-Objekt.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: