SearchIndexClient.GetKnowledgeBasesAsync Method

Definition

Overloads

Name Description
GetKnowledgeBasesAsync(RequestContext)

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

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

Lists all knowledge bases available for a search service.

GetKnowledgeBasesAsync(RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Lists all knowledge bases 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> GetKnowledgeBasesAsync(Azure.RequestContext context);
abstract member GetKnowledgeBasesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetKnowledgeBasesAsync : Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetKnowledgeBasesAsync (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

GetKnowledgeBasesAsync(CancellationToken)

Source:
SearchIndexClient.cs
Source:
SearchIndexClient.KnowledgeBases.cs

Lists all knowledge bases available for a search service.

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

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 KnowledgeBase.

Exceptions

Service returned a non-success status code.

Applies to