Compartir a través de


BatchExtensions.CheckBatchNameAvailability Método

Definición

Comprueba si el nombre de la cuenta de Batch está disponible en la región especificada.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability
  • IdLocation_CheckNameAvailability de operaciones
public static Azure.Response<Azure.ResourceManager.Batch.Models.BatchNameAvailabilityResult> CheckBatchNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.Batch.Models.BatchNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckBatchNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.Batch.Models.BatchNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Batch.Models.BatchNameAvailabilityResult>
<Extension()>
Public Function CheckBatchNameAvailability (subscriptionResource As SubscriptionResource, locationName As AzureLocation, content As BatchNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BatchNameAvailabilityResult)

Parámetros

subscriptionResource
SubscriptionResource

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

locationName
AzureLocation

Región deseada para la comprobación de nombres.

content
BatchNameAvailabilityContent

Propiedades necesarias para comprobar la disponibilidad de un nombre.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a