SearchIndexClient.CreateKnowledgeSource 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 |
|---|---|
| CreateKnowledgeSource(RequestContent, RequestContext) |
[Protocol Method] Creates a new knowledge source.
|
| CreateKnowledgeSource(KnowledgeSource, CancellationToken) |
Creates a new knowledge source. |
CreateKnowledgeSource(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 Azure.Response CreateKnowledgeSource(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateKnowledgeSource : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateKnowledgeSource : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateKnowledgeSource (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
CreateKnowledgeSource(KnowledgeSource, CancellationToken)
Creates a new knowledge source.
public virtual Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeSource> CreateKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeSource>
override this.CreateKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeSource>
Public Overridable Function CreateKnowledgeSource (knowledgeSource As KnowledgeSource, Optional cancellationToken As CancellationToken = Nothing) As 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.