SearchIndexClient.CreateKnowledgeBase Method

Definition

Overloads

Name Description
CreateKnowledgeBase(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.
CreateKnowledgeBase(KnowledgeBase, CancellationToken)

Creates a new knowledge base.

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

CreateKnowledgeBase(KnowledgeBase, CancellationToken)

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

Creates a new knowledge base.

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