Compartilhar via


EnergyServicesExtensions.CheckNameAvailabilityLocation Método

Definição

Verifica a disponibilidade do nome do recurso com o nome do recurso solicitado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.OpenEnergyPlatform/checkNameAvailability
  • IdLocations_CheckNameAvailability de operação
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

A SubscriptionResource instância na qual o método será executado.

content
EnergyServiceNameAvailabilityContent

Objeto NameAvailabilityRequest.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a