Partilhar via


SynonymMapsOperationsExtensions.CreateOrUpdateAsync Método

Definição

Sobrecargas

CreateOrUpdateAsync(ISynonymMapsOperations, SynonymMap, SearchRequestOptions, AccessCondition, CancellationToken)

Cria um novo mapa de sinônimos ou atualiza um mapa de sinônimos se ele já existir. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

CreateOrUpdateAsync(ISynonymMapsOperations, String, SynonymMap, SearchRequestOptions, AccessCondition, CancellationToken)

Cria um novo mapa de sinônimos ou atualiza um mapa de sinônimos se ele já existir. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

CreateOrUpdateAsync(ISynonymMapsOperations, SynonymMap, SearchRequestOptions, AccessCondition, CancellationToken)

Origem:
SynonymMapsOperationsExtensions.Customization.cs

Cria um novo mapa de sinônimos ou atualiza um mapa de sinônimos se ele já existir. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.SynonymMap> CreateOrUpdateAsync (this Microsoft.Azure.Search.ISynonymMapsOperations operations, Microsoft.Azure.Search.Models.SynonymMap synonymMap, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.ISynonymMapsOperations * Microsoft.Azure.Search.Models.SynonymMap * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.SynonymMap>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ISynonymMapsOperations, synonymMap As SynonymMap, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SynonymMap)

Parâmetros

operations
ISynonymMapsOperations

O grupo de operações para esse método de extensão.

synonymMap
SynonymMap

A definição do mapa de sinônimos a ser criado ou atualizado.

searchRequestOptions
SearchRequestOptions

Parâmetros adicionais para a operação.

accessCondition
AccessCondition

Parâmetros adicionais para a operação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

O mapa de sinônimos que foi criado ou atualizado.

Aplica-se a

CreateOrUpdateAsync(ISynonymMapsOperations, String, SynonymMap, SearchRequestOptions, AccessCondition, CancellationToken)

Origem:
SynonymMapsOperationsExtensions.Customization.cs

Cria um novo mapa de sinônimos ou atualiza um mapa de sinônimos se ele já existir. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.SynonymMap> CreateOrUpdateAsync (this Microsoft.Azure.Search.ISynonymMapsOperations operations, string synonymMapName, Microsoft.Azure.Search.Models.SynonymMap synonymMap, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.ISynonymMapsOperations * string * Microsoft.Azure.Search.Models.SynonymMap * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.SynonymMap>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ISynonymMapsOperations, synonymMapName As String, synonymMap As SynonymMap, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SynonymMap)

Parâmetros

operations
ISynonymMapsOperations

O grupo de operações para esse método de extensão.

synonymMapName
String

O nome do mapa de sinônimos a ser criado ou atualizado.

synonymMap
SynonymMap

A definição do mapa de sinônimos a ser criado ou atualizado.

searchRequestOptions
SearchRequestOptions

Parâmetros adicionais para a operação

accessCondition
AccessCondition

Parâmetros adicionais para a operação

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a