SearchIndexClient.CreateKnowledgeBaseAsync Method

Definition

Overloads

Name Description
CreateKnowledgeBaseAsync(RequestContent, RequestContext)

[Protocol Method] Creates a new knowledge base.

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

Creates a new knowledge base.

CreateKnowledgeBaseAsync(RequestContent, RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Creates a new knowledge base.

  • 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> CreateKnowledgeBaseAsync(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateKnowledgeBaseAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateKnowledgeBaseAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateKnowledgeBaseAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

content
RequestContent

The content to send as the body of the request.

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

content is null.

Service returned a non-success status code.

Applies to

CreateKnowledgeBaseAsync(KnowledgeBase, CancellationToken)

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

Creates a new knowledge base.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeBase>> CreateKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase knowledgeBase, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeBase>> CreateKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateKnowledgeBaseAsync : Azure.Search.Documents.Indexes.Models.KnowledgeBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeBase>>
override this.CreateKnowledgeBaseAsync : Azure.Search.Documents.Indexes.Models.KnowledgeBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeBase>>
abstract member CreateKnowledgeBaseAsync : Azure.Search.Documents.Indexes.Models.KnowledgeBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeBase>>
override this.CreateKnowledgeBaseAsync : Azure.Search.Documents.Indexes.Models.KnowledgeBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeBase>>
Public Overridable Function CreateKnowledgeBaseAsync (knowledgeBase As KnowledgeBase, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KnowledgeBase))
Public Overridable Function CreateKnowledgeBaseAsync (KnowledgeBase As KnowledgeBase, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KnowledgeBase))

Parameters

knowledgeBaseKnowledgeBase
KnowledgeBase

The definition of the knowledge base to create.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

knowledgeBase is null.

Applies to