SearchExtensions.CheckSearchServiceNameAvailabilityAsync Método

Definição

Verifica se o nome do serviço de pesquisa fornecido está disponível ou não para uso. serviço Pesquisa nomes devem ser globalmente exclusivos, pois fazem parte do URI de serviço (https://< name.search.windows.net>).

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

Parâmetros

subscriptionResource
SubscriptionResource

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

content
SearchServiceNameAvailabilityContent

O nome do recurso e o tipo a marcar.

searchManagementRequestOptions
SearchManagementRequestOptions

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a