Compartir a través de


SearchIndexClient.GetSynonymMap(String, CancellationToken) Método

Definición

Obtiene un objeto específico SynonymMap.

public virtual Azure.Response<Azure.Search.Documents.Indexes.Models.SynonymMap> GetSynonymMap (string synonymMapName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSynonymMap : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.SynonymMap>
override this.GetSynonymMap : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.SynonymMap>
Public Overridable Function GetSynonymMap (synonymMapName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SynonymMap)

Parámetros

synonymMapName
String

Necesario. Nombre de SynonymMap que se va a obtener.

cancellationToken
CancellationToken

Opcional CancellationToken para propagar las notificaciones que se deben cancelar en la operación.

Devoluciones

Response<T> del servidor que contiene el objeto solicitadoSynonymMap.

Excepciones

Se genera cuando el valor de synonymMapName es null.

Se produce cuando el servicio Search devuelve un error.

Se aplica a