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

DocumentsOperationsExtensions.CountAsync 方法

定义

查询搜索索引中的文档数。

public static System.Threading.Tasks.Task<long> CountAsync (this Microsoft.Azure.Search.IDocumentsOperations operations, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member CountAsync : Microsoft.Azure.Search.IDocumentsOperations * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>
<Extension()>
Public Function CountAsync (operations As IDocumentsOperations, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Long)

参数

operations
IDocumentsOperations

此扩展方法的操作组。

searchRequestOptions
SearchRequestOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于