Share via


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

SearchIndexerClient.GetIndexerAsync(String, CancellationToken) 方法

定义

获取特定的 SearchIndexer

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexer>> GetIndexerAsync (string indexerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIndexerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexer>>
override this.GetIndexerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexer>>
Public Overridable Function GetIndexerAsync (indexerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchIndexer))

参数

indexerName
String

必需。 要获取的 SearchIndexer 的名称。

cancellationToken
CancellationToken

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

返回

Response<T>包含所请求的服务器中的 SearchIndexer

例外

indexerName 为 null 时引发。

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

适用于