Compartilhar via


SearchServiceCollection.GetIfExists Método

Definição

Tenta obter detalhes desse recurso do serviço.

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