你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SkillsetsOperationsExtensions.CreateOrUpdateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateOrUpdateAsync(ISkillsetsOperations, Skillset, SearchRequestOptions, AccessCondition, CancellationToken)
创建新的技能组或更新技能集(如果已存在)。
public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset> CreateOrUpdateAsync (this Microsoft.Azure.Search.ISkillsetsOperations operations, Microsoft.Azure.Search.Models.Skillset skillset, 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.ISkillsetsOperations * Microsoft.Azure.Search.Models.Skillset * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ISkillsetsOperations, skillset As Skillset, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Skillset)
参数
- operations
- ISkillsetsOperations
此扩展方法的操作组。
- skillset
- Skillset
要创建或更新的技能集的定义。
- searchRequestOptions
- SearchRequestOptions
操作的其他参数
- accessCondition
- AccessCondition
操作的其他参数
- cancellationToken
- CancellationToken
取消标记。
返回
适用于
CreateOrUpdateAsync(ISkillsetsOperations, String, Skillset, SearchRequestOptions, CancellationToken)
在搜索服务中创建新的技能组,或更新技能集(如果已存在)。 https://docs.microsoft.com/rest/api/searchservice/update-skillset
public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset> CreateOrUpdateAsync (this Microsoft.Azure.Search.ISkillsetsOperations operations, string skillsetName, Microsoft.Azure.Search.Models.Skillset skillset, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.ISkillsetsOperations * string * Microsoft.Azure.Search.Models.Skillset * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ISkillsetsOperations, skillsetName As String, skillset As Skillset, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Skillset)
参数
- operations
- ISkillsetsOperations
此扩展方法的操作组。
- skillsetName
- String
要创建或更新的技能组的名称。
- skillset
- Skillset
包含一个或多个技能的技能集,用于在搜索服务中创建或更新。
- searchRequestOptions
- SearchRequestOptions
操作的其他参数
- cancellationToken
- CancellationToken
取消标记。