Compartilhar via


CommunicationExtensions.CheckCommunicationNameAvailabilityAsync Método

Definição

Verifica se o nome communicationService é válido e ainda não está em uso.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Communication/checkNameAvailability
  • IdCommunicationServices_CheckNameAvailability de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationNameAvailabilityResult>> CheckCommunicationNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Communication.Models.CommunicationServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckCommunicationNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Communication.Models.CommunicationServiceNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.Models.CommunicationNameAvailabilityResult>>
<Extension()>
Public Function CheckCommunicationNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As CommunicationServiceNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunicationNameAvailabilityResult))

Parâmetros

subscriptionResource
SubscriptionResource

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

content
CommunicationServiceNameAvailabilityContent

Parâmetros fornecidos para a operação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a