Freigeben über


IIndexersOperations.CreateOrUpdateWithHttpMessagesAsync Methode

Definition

Überlädt

CreateOrUpdateWithHttpMessagesAsync(Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Erstellt einen neuen Indexer oder aktualisiert einen Indexer, sofern er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

CreateOrUpdateWithHttpMessagesAsync(String, Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Erstellt einen neuen Indexer oder aktualisiert einen Indexer, sofern er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

CreateOrUpdateWithHttpMessagesAsync(Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Erstellt einen neuen Indexer oder aktualisiert einen Indexer, sofern er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>> CreateOrUpdateWithHttpMessagesAsync (Microsoft.Azure.Search.Models.Indexer indexer, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : Microsoft.Azure.Search.Models.Indexer * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>>
Public Function CreateOrUpdateWithHttpMessagesAsync (indexer As Indexer, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Indexer))

Parameter

indexer
Indexer

Die Definition des zu erstellenden oder aktualisierenden Indexers.

searchRequestOptions
SearchRequestOptions

Zusätzliche Parameter für den Vorgang

accessCondition
AccessCondition

Zusätzliche Parameter für den Vorgang

customHeaders
Dictionary<String,List<String>>

Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Ein Antwortobjekt, das den Antworttext und die Antwortheader enthält.

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann.

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist.

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist.

Gilt für:

CreateOrUpdateWithHttpMessagesAsync(String, Indexer, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Erstellt einen neuen Indexer oder aktualisiert einen Indexer, sofern er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Create-Indexer

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>> CreateOrUpdateWithHttpMessagesAsync (string indexerName, Microsoft.Azure.Search.Models.Indexer indexer, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * Microsoft.Azure.Search.Models.Indexer * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Indexer>>
Public Function CreateOrUpdateWithHttpMessagesAsync (indexerName As String, indexer As Indexer, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Indexer))

Parameter

indexerName
String

Der Name des Indexers, der erstellt oder aktualisiert werden soll.

indexer
Indexer

Die Definition des zu erstellenden oder aktualisierenden Indexers.

searchRequestOptions
SearchRequestOptions

Zusätzliche Parameter für den Vorgang

accessCondition
AccessCondition

Zusätzliche Parameter für den Vorgang

customHeaders
Dictionary<String,List<String>>

Die Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Gilt für: