SearchIndexClient.CreateKnowledgeSourceAsync Method

Definition

Overloads

Name Description
CreateKnowledgeSourceAsync(KnowledgeSource, CancellationToken)

Creates a new knowledge source.

CreateKnowledgeSourceAsync(RequestContent, RequestContext)

[Protocol Method] Creates a new knowledge source.

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

CreateKnowledgeSourceAsync(KnowledgeSource, CancellationToken)

Source:
SearchIndexClient.KnowledgeSources.cs
Source:
SearchIndexClient.KnowledgeSources.cs

Creates a new knowledge source.

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

Parameters

knowledgeSource
KnowledgeSource

The definition of the knowledge source to create.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

knowledgeSource is null.

Applies to

CreateKnowledgeSourceAsync(RequestContent, RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Creates a new knowledge source.

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