Compartilhar via


RelayExtensions.CheckRelayNamespaceNameAvailabilityAsync Método

Definição

Verifique a disponibilidade do nome do namespace especificado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Relay/checkNameAvailability
  • Operação IdNamespaces_CheckNameAvailability
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

A SubscriptionResource instância em que o método será executado.

content
RelayNameAvailabilityContent

Parâmetros para marcar disponibilidade do nome do namespace especificado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a