Compartir a través de


SearchServiceCollection.GetIfExists 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 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

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