Compartir a través de


EnergyServicesExtensions.CheckNameAvailabilityLocation Método

Definición

Comprueba la disponibilidad del nombre del recurso con el nombre del recurso solicitado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/checkNameAvailability
  • IdLocations_CheckNameAvailability de operaciones
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)

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

content
EnergyServiceNameAvailabilityContent

NameAvailabilityRequest (objeto).

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a