Compartir a través de


SearchExtensions.CheckSearchServiceNameAvailability Método

Definición

Comprueba si el nombre del servicio de búsqueda determinado está disponible para su uso o no. servicio Search nombres deben ser únicos globalmente, ya que forman parte del URI del servicio (https://< name.search.windows.net>).

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability
  • IdServices_CheckNameAvailability de operaciones
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

Instancia SubscriptionResource en la que se ejecutará el método.

content
SearchServiceNameAvailabilityContent

Nombre del recurso y tipo que se va a comprobar.

searchManagementRequestOptions
SearchManagementRequestOptions

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a