SynonymMapsOperationsExtensions.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- CancellationToken
The cancellation token.
Returns
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
- 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
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET