SearchIndexClient.GetKnowledgeSourcesAsync Method

Definition

Overloads

Name Description
GetKnowledgeSourcesAsync(CancellationToken)

Lists all knowledge sources available for a search service.

GetKnowledgeSourcesAsync(RequestContext)

[Protocol Method] Lists all knowledge sources available for a search service.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

GetKnowledgeSourcesAsync(CancellationToken)

Source:
SearchIndexClient.cs
Source:
SearchIndexClient.KnowledgeSources.cs

Lists all knowledge sources available for a search service.

public virtual Azure.AsyncPageable<Azure.Search.Documents.Indexes.Models.KnowledgeSource> GetKnowledgeSourcesAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetKnowledgeSourcesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Search.Documents.Indexes.Models.KnowledgeSource>
override this.GetKnowledgeSourcesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Search.Documents.Indexes.Models.KnowledgeSource>
Public Overridable Function GetKnowledgeSourcesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of KnowledgeSource)

Parameters

cancellationToken
CancellationToken

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

Returns

The Response<T> from the server containing a list of KnowledgeSource.

Exceptions

Service returned a non-success status code.

Applies to

GetKnowledgeSourcesAsync(RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Lists all knowledge sources available for a search service.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.AsyncPageable<BinaryData> GetKnowledgeSourcesAsync(Azure.RequestContext context);
abstract member GetKnowledgeSourcesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetKnowledgeSourcesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetKnowledgeSourcesAsync (context As RequestContext) As AsyncPageable(Of BinaryData)

Parameters

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

Service returned a non-success status code.

Applies to