Freigeben über


IndexesOperationsExtensions.ExistsAsync Methode

Definition

Bestimmt, ob der angegebene Index im Suchdienst vorhanden ist oder nicht.

public static System.Threading.Tasks.Task<bool> ExistsAsync (this Microsoft.Azure.Search.IIndexesOperations operations, string indexName, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ExistsAsync : Microsoft.Azure.Search.IIndexesOperations * string * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function ExistsAsync (operations As IIndexesOperations, indexName As String, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameter

operations
IIndexesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

indexName
String

Der Name des Index.

searchRequestOptions
SearchRequestOptions

Zusätzliche Parameter für den Vorgang.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

true wenn der Index vorhanden ist; false Andernfalls.

Gilt für: