Compartilhar via


BatchExtensions.CheckBatchNameAvailabilityAsync Método

Definição

Verifica se o nome da conta do Lote está disponível na região especificada.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability
  • IdLocation_CheckNameAvailability de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.Models.BatchNameAvailabilityResult>> CheckBatchNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.Batch.Models.BatchNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckBatchNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.Batch.Models.BatchNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.Models.BatchNameAvailabilityResult>>
<Extension()>
Public Function CheckBatchNameAvailabilityAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, content As BatchNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BatchNameAvailabilityResult))

Parâmetros

subscriptionResource
SubscriptionResource

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

locationName
AzureLocation

A região desejada para o nome marcar.

content
BatchNameAvailabilityContent

Propriedades necessárias para marcar a disponibilidade de um nome.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a