SearchIndexClient.GetKnowledgeBases 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 |
|---|---|
| GetKnowledgeBases(RequestContext) |
[Protocol Method] Lists all knowledge bases available for a search service.
|
| GetKnowledgeBases(CancellationToken) |
Lists all knowledge bases available for a search service. |
GetKnowledgeBases(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.Pageable<BinaryData> GetKnowledgeBases(Azure.RequestContext context);
abstract member GetKnowledgeBases : Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetKnowledgeBases : Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetKnowledgeBases (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
GetKnowledgeBases(CancellationToken)
- Source:
- SearchIndexClient.cs
Lists all knowledge bases available for a search service.
public virtual Azure.Pageable<Azure.Search.Documents.Indexes.Models.KnowledgeBase> GetKnowledgeBases(System.Threading.CancellationToken cancellationToken = default);
abstract member GetKnowledgeBases : System.Threading.CancellationToken -> Azure.Pageable<Azure.Search.Documents.Indexes.Models.KnowledgeBase>
override this.GetKnowledgeBases : System.Threading.CancellationToken -> Azure.Pageable<Azure.Search.Documents.Indexes.Models.KnowledgeBase>
Public Overridable Function GetKnowledgeBases (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of KnowledgeBase)
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 KnowledgeBase.
Exceptions
Service returned a non-success status code.