SearchIndexClient.GetKnowledgeSource(String, CancellationToken) 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.
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 to retrieve.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
sourceName is null.