Language

SearchIndexerClient.CreateSkillset Method

Definition

Overloads

Name Description
CreateSkillset(RequestContent, RequestContext)

[Protocol Method] Creates a new skillset in a search service.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
CreateSkillset(SearchIndexerSkillset, CancellationToken)

Creates a new skillset in a search service.

CreateSkillset(RequestContent, RequestContext)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

[Protocol Method] Creates a new skillset in a search service.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response CreateSkillset(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateSkillset : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateSkillset : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateSkillset (content As RequestContent, Optional context As RequestContext = Nothing) As Response

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to

CreateSkillset(SearchIndexerSkillset, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Creates a new skillset in a search service.

public virtual Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset> CreateSkillset(Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset skillset, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSkillset : Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset>
override this.CreateSkillset : Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset>
Public Overridable Function CreateSkillset (skillset As SearchIndexerSkillset, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SearchIndexerSkillset)

Parameters

skillset
SearchIndexerSkillset

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

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

The Response<T> from the server containing the SearchIndexerSkillset that was created. This may differ slightly from what was passed in since the service may return back properties set to their default values.

Exceptions

skillset is null.

Service returned a non-success status code.

Applies to