Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SearchIndexerClient.GetIndexersAsync(CancellationToken) 方法

定义

获取所有索引器的列表。

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Indexes.Models.SearchIndexer>>> GetIndexersAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetIndexersAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Indexes.Models.SearchIndexer>>>
override this.GetIndexersAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Indexes.Models.SearchIndexer>>>
Public Overridable Function GetIndexersAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of SearchIndexer)))

参数

cancellationToken
CancellationToken

可选 CancellationToken ,用于传播应取消操作的通知。

返回

Response<T>包含 列表的服务器中的 SearchIndexer

例外

当搜索服务返回失败时引发。

适用于