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

定義

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

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

パラメーター

indexName
String

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

cancellationToken
CancellationToken

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

戻り値

Response<T>名前を含むサーバーの SearchIndexStatistics

例外

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

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

適用対象