Share via


SkillsetsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Overloads

CreateOrUpdateAsync(ISkillsetsOperations, Skillset, SearchRequestOptions, AccessCondition, CancellationToken)

Creates a new skillset or updates a skillset if it already exists.

CreateOrUpdateAsync(ISkillsetsOperations, String, Skillset, SearchRequestOptions, CancellationToken)

Creates a new skillset in a search service or updates the skillset if it already exists. https://docs.microsoft.com/rest/api/searchservice/update-skillset

CreateOrUpdateAsync(ISkillsetsOperations, Skillset, SearchRequestOptions, AccessCondition, CancellationToken)

Source:
SkillsetsOperationsExtensions.Customization.cs

Creates a new skillset or updates a skillset if it already exists.

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset> CreateOrUpdateAsync (this Microsoft.Azure.Search.ISkillsetsOperations operations, Microsoft.Azure.Search.Models.Skillset skillset, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.ISkillsetsOperations * Microsoft.Azure.Search.Models.Skillset * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ISkillsetsOperations, skillset As Skillset, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Skillset)

Parameters

operations
ISkillsetsOperations

The operations group for this extension method.

skillset
Skillset

The definition of the skillset to create or update.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to

CreateOrUpdateAsync(ISkillsetsOperations, String, Skillset, SearchRequestOptions, CancellationToken)

Source:
SkillsetsOperationsExtensions.Customization.cs

Creates a new skillset in a search service or updates the skillset if it already exists. https://docs.microsoft.com/rest/api/searchservice/update-skillset

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset> CreateOrUpdateAsync (this Microsoft.Azure.Search.ISkillsetsOperations operations, string skillsetName, Microsoft.Azure.Search.Models.Skillset skillset, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.ISkillsetsOperations * string * Microsoft.Azure.Search.Models.Skillset * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Skillset>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ISkillsetsOperations, skillsetName As String, skillset As Skillset, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Skillset)

Parameters

operations
ISkillsetsOperations

The operations group for this extension method.

skillsetName
String

The name of the skillset to create or update.

skillset
Skillset

The skillset containing one or more skills to create or update in a search service.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to