Compartir a través de


RelayExtensions.CheckRelayNamespaceNameAvailabilityAsync Método

Definición

Compruebe la disponibilidad del nombre del espacio de nombres especificado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Relay/checkNameAvailability
  • IdNamespaces_CheckNameAvailability de operación
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Relay.Models.RelayNameAvailabilityResult>> CheckRelayNamespaceNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Relay.Models.RelayNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckRelayNamespaceNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Relay.Models.RelayNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Relay.Models.RelayNameAvailabilityResult>>
<Extension()>
Public Function CheckRelayNamespaceNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As RelayNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RelayNameAvailabilityResult))

Parámetros

subscriptionResource
SubscriptionResource

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

content
RelayNameAvailabilityContent

Parámetros para comprobar la disponibilidad del nombre de espacio de nombres especificado.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a