SearchClient.GetDocumentCountAsync(CancellationToken) Methode

Definition

Ruft die Anzahl der Dokumente in diesem Suchindex ab.

public virtual System.Threading.Tasks.Task<Azure.Response<long>> GetDocumentCountAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDocumentCountAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<int64>>
override this.GetDocumentCountAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<int64>>
Public Overridable Function GetDocumentCountAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Long))

Parameter

cancellationToken
CancellationToken

Optional CancellationToken zur Weitergabe von Benachrichtigungen, dass der Vorgang abgebrochen werden soll.

Gibt zurück

Die Anzahl der Dokumente im Suchindex.

Ausnahmen

Wird ausgelöst, wenn ein Fehler vom Suchdienst zurückgegeben wird.

Gilt für: