Partilhar via


SearchServiceCollection.GetAsync Método

Definição

Obtém o serviço de pesquisa com o nome fornecido no grupo de recursos fornecido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operação IdServices_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.SearchServiceResource>> GetAsync (string searchServiceName, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.SearchServiceResource>>
override this.GetAsync : string * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.SearchServiceResource>>
Public Overridable Function GetAsync (searchServiceName As String, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchServiceResource))

Parâmetros

searchServiceName
String

O nome do serviço Azure Cognitive Search associado ao grupo de recursos especificado.

searchManagementRequestOptions
SearchManagementRequestOptions

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

searchServiceName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

searchServiceName é nulo.

Aplica-se a