SearchIndexClient.GetKnowledgeSource 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 |
|---|---|
| GetKnowledgeSource(String, RequestContext) |
[Protocol Method] Retrieves a knowledge source definition.
|
| GetKnowledgeSource(String, CancellationToken) |
Retrieves a knowledge source definition. |
GetKnowledgeSource(String, RequestContext)
- Source:
- SearchIndexClient.cs
[Protocol Method] Retrieves a knowledge source definition.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetKnowledgeSource(string sourceName, Azure.RequestContext context);
abstract member GetKnowledgeSource : string * Azure.RequestContext -> Azure.Response
override this.GetKnowledgeSource : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetKnowledgeSource (sourceName As String, context As RequestContext) As Response
Parameters
- sourceName
- String
The name of the knowledge source.
- 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
sourceName is null.
sourceName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetKnowledgeSource(String, CancellationToken)
- Source:
- SearchIndexClient.cs
Retrieves a knowledge source definition.
public virtual Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeSource> GetKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetKnowledgeSource : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeSource>
override this.GetKnowledgeSource : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.KnowledgeSource>
Public Overridable Function GetKnowledgeSource (sourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KnowledgeSource)
Parameters
- sourceName
- String
The name of the knowledge source.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
sourceName is null.
sourceName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.