SearchIndexerClient.GetSkillsetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetSkillsetAsync(String, RequestContext) |
[Protocol Method] Retrieves a skillset in a search service.
|
| GetSkillsetAsync(String, CancellationToken) |
Retrieves a skillset in a search service. |
GetSkillsetAsync(String, RequestContext)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
[Protocol Method] Retrieves a skillset in a search service.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetSkillsetAsync(string skillsetName, Azure.RequestContext context);
abstract member GetSkillsetAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetSkillsetAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetSkillsetAsync (skillsetName As String, context As RequestContext) As Task(Of Response)
Parameters
- skillsetName
- String
The name of the skillset.
- 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
skillsetName is null.
skillsetName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetSkillsetAsync(String, CancellationToken)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
Retrieves a skillset in a search service.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset>> GetSkillsetAsync(string skillsetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillsetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset>>
override this.GetSkillsetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset>>
Public Overridable Function GetSkillsetAsync (skillsetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchIndexerSkillset))
Parameters
- skillsetName
- String
The name of the skillset.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The Response<T> from the server containing the requested SearchIndexerSkillset.
Exceptions
skillsetName is null.
skillsetName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.