Freigeben über


ISkillsetsOperations.CreateWithHttpMessagesAsync Methode

Definition

Erstellt ein neues Skillset in einem Suchdienst. https://docs.microsoft.com/rest/api/searchservice/create-skillset

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Skillset>> CreateWithHttpMessagesAsync (Microsoft.Azure.Search.Models.Skillset skillset, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWithHttpMessagesAsync : Microsoft.Azure.Search.Models.Skillset * Microsoft.Azure.Search.Models.SearchRequestOptions * 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.Skillset>>
Public Function CreateWithHttpMessagesAsync (skillset As Skillset, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Skillset))

Parameter

skillset
Skillset

Das Skillset, das eine oder mehrere Skills enthält, die in einem Suchdienst erstellt werden sollen.

searchRequestOptions
SearchRequestOptions

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: