Partilhar via


EventHubsExtensions.CheckEventHubsNamespaceNameAvailabilityAsync Método

Definição

Verifique a disponibilidade do nome do namespace.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability
  • Operação IdNamespaces_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityResult>> CheckEventHubsNamespaceNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckEventHubsNamespaceNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventHubs.Models.EventHubsNameAvailabilityResult>>
<Extension()>
Public Function CheckEventHubsNamespaceNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As EventHubsNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventHubsNameAvailabilityResult))

Parâmetros

subscriptionResource
SubscriptionResource

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

content
EventHubsNameAvailabilityContent

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

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a