SearchIndexClient.GetIndexStatisticsAsync(String, CancellationToken) メソッド

定義

ドキュメント数とストレージ使用量を含む、指定されたインデックスのを取得 SearchIndexStatistics します。

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

パラメーター

indexName
String

必須。 インデックスの名前です。

cancellationToken
CancellationToken

操作を取り消す必要がある通知を伝達する場合は省略可能 CancellationToken です。

戻り値

Response<T> 含むサーバーからの SearchIndexStatistics

例外

indexName が null の場合にスローされます。

Search Serviceによってエラーが返されたときにスローされます。

適用対象