SearchIndexClient.GetKnowledgeSources Method

Definition

Overloads

Name Description
GetKnowledgeSources(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.
GetKnowledgeSources(CancellationToken)

Lists all knowledge sources available for a search service.

GetKnowledgeSources(RequestContext)

Source:
SearchIndexClient.cs
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.Pageable<BinaryData> GetKnowledgeSources(Azure.RequestContext context);
abstract member GetKnowledgeSources : Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetKnowledgeSources : Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetKnowledgeSources (context As RequestContext) As Pageable(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

GetKnowledgeSources(CancellationToken)

Source:
SearchIndexClient.cs
Source:
SearchIndexClient.cs

Lists all knowledge sources available for a search service.

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

Parameters

cancellationToken
CancellationToken

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

Returns

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

Exceptions

Service returned a non-success status code.

Applies to