SearchIndexClient.GetKnowledgeSourceStatus 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 |
|---|---|
| GetKnowledgeSourceStatus(String, RequestContext) |
[Protocol Method] Retrieves the status of a knowledge source.
|
| GetKnowledgeSourceStatus(String, CancellationToken) |
Retrieves the status of a knowledge source. |
GetKnowledgeSourceStatus(String, RequestContext)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
[Protocol Method] Retrieves the status of a knowledge source.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetKnowledgeSourceStatus(string sourceName, Azure.RequestContext context);
abstract member GetKnowledgeSourceStatus : string * Azure.RequestContext -> Azure.Response
override this.GetKnowledgeSourceStatus : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetKnowledgeSourceStatus (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
GetKnowledgeSourceStatus(String, CancellationToken)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
Retrieves the status of a knowledge source.
public virtual Azure.Response<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceStatus> GetKnowledgeSourceStatus(string sourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetKnowledgeSourceStatus : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceStatus>
override this.GetKnowledgeSourceStatus : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceStatus>
Public Overridable Function GetKnowledgeSourceStatus (sourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KnowledgeSourceStatus)
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.