Partilhar via


SearchExtensions.CheckSearchServiceNameAvailability 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 Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult> CheckSearchServiceNameAvailability (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 CheckSearchServiceNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityContent * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Search.Models.SearchServiceNameAvailabilityResult>
<Extension()>
Public Function CheckSearchServiceNameAvailability (subscriptionResource As SubscriptionResource, content As SearchServiceNameAvailabilityContent, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SearchServiceNameAvailabilityResult)

Parâmetros

subscriptionResource
SubscriptionResource

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

content
SearchServiceNameAvailabilityContent

O nome do recurso e o tipo para marcar.

searchManagementRequestOptions
SearchManagementRequestOptions

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a