SynonymMapsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Overloads

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

Creates a new synonym map or updates a synonym map if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

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

Creates a new synonym map or updates a synonym map if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Synonym-Map

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

Creates a new synonym map or updates a synonym map if it already exists. 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)

Parameters

operations
ISynonymMapsOperations

The operations group for this extension method.

synonymMap
SynonymMap

The definition of the synonymmap to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation.

accessCondition
AccessCondition

Additional parameters for the operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<SynonymMap>

The synonym map that was created or updated.

Applies to

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

Creates a new synonym map or updates a synonym map if it already exists. 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)

Parameters

operations
ISynonymMapsOperations

The operations group for this extension method.

synonymMapName
System.String

The name of the synonym map to create or update.

synonymMap
SynonymMap

The definition of the synonym map to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<SynonymMap>

Applies to