Share via


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

SearchIndexerClient.GetIndexers(CancellationToken) 方法

定义

获取所有索引器的列表。

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

参数

cancellationToken
CancellationToken

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

返回

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

例外

当搜索服务返回故障时引发。

适用于