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

IndexersOperationsExtensions.GetStatusAsync 方法

定义

返回索引器的当前状态和执行历史记录。 https://docs.microsoft.com/rest/api/searchservice/Get-Indexer-Status

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.IndexerExecutionInfo> GetStatusAsync (this Microsoft.Azure.Search.IIndexersOperations operations, string indexerName, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetStatusAsync : Microsoft.Azure.Search.IIndexersOperations * string * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.IndexerExecutionInfo>
<Extension()>
Public Function GetStatusAsync (operations As IIndexersOperations, indexerName As String, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IndexerExecutionInfo)

参数

operations
IIndexersOperations

此扩展方法的操作组。

indexerName
String

要检索其状态的索引器的名称。

searchRequestOptions
SearchRequestOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于