SearchIndexClient.CreateKnowledgeBaseAsync 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.
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);
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))
Parameters
- KnowledgeBase
- KnowledgeBase
The definition of the knowledge base to create.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
KnowledgeBase is null.