Compartir a través de


SearchServiceCollection.GetIfExistsAsync Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • IdServices_Get de operaciones
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Search.SearchServiceResource>> GetIfExistsAsync (string searchServiceName, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Search.SearchServiceResource>>
override this.GetIfExistsAsync : string * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Search.SearchServiceResource>>
Public Overridable Function GetIfExistsAsync (searchServiceName As String, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of SearchServiceResource))

Parámetros

searchServiceName
String

Nombre del servicio Azure Cognitive Search asociado al grupo de recursos especificado.

searchManagementRequestOptions
SearchManagementRequestOptions

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

searchServiceName es una cadena vacía y se esperaba que no estuviera vacía.

searchServiceName es null.

Se aplica a