你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SynonymMapsOperationsExtensions.CreateOrUpdateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateOrUpdateAsync(ISynonymMapsOperations, SynonymMap, SearchRequestOptions, AccessCondition, CancellationToken)
创建新的同义词映射或更新同义词映射(如果已存在)。 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)
参数
- operations
- ISynonymMapsOperations
此扩展方法的操作组。
- synonymMap
- SynonymMap
要创建或更新的同义词映射的定义。
- searchRequestOptions
- SearchRequestOptions
操作的其他参数。
- accessCondition
- AccessCondition
操作的其他参数。
- cancellationToken
- CancellationToken
取消标记。
返回
已创建或更新的同义词映射。
适用于
CreateOrUpdateAsync(ISynonymMapsOperations, String, SynonymMap, SearchRequestOptions, AccessCondition, CancellationToken)
创建新的同义词映射或更新同义词映射(如果已存在)。 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)
参数
- operations
- ISynonymMapsOperations
此扩展方法的操作组。
- synonymMapName
- String
要创建或更新的同义词映射的名称。
- synonymMap
- SynonymMap
要创建或更新的同义词映射的定义。
- searchRequestOptions
- SearchRequestOptions
操作的其他参数
- accessCondition
- AccessCondition
操作的其他参数
- cancellationToken
- CancellationToken
取消标记。