SearchIndexClient.GetIndexStatisticsAsync(String, CancellationToken) Método

Definición

Obtiene SearchIndexStatistics para el índice especificado, incluido un recuento de documentos y un uso de almacenamiento.

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))

Parámetros

indexName
String

Necesario. El nombre del índice.

cancellationToken
CancellationToken

Opcional CancellationToken para propagar las notificaciones que se deben cancelar en la operación.

Devoluciones

Response<T> del servidor que contiene SearchIndexStatistics.

Excepciones

Se genera cuando el valor de indexName es null.

Se produce cuando el servicio Search devuelve un error.

Se aplica a