Compartilhar via


EnergyServicesExtensions.CheckNameAvailabilityLocationAsync 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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityResult>> CheckNameAvailabilityLocationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityLocationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EnergyServices.Models.EnergyServiceNameAvailabilityResult>>
<Extension()>
Public Function CheckNameAvailabilityLocationAsync (subscriptionResource As SubscriptionResource, content As EnergyServiceNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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