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