KnowledgeBases.GetOperationStatusAsync 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 |
|---|---|
| GetOperationStatusAsync(String, String, RequestContext) |
[Protocol Method] Get the status of a long-running operation.
|
| GetOperationStatusAsync(String, String, CancellationToken) |
Get the status of a long-running operation. |
GetOperationStatusAsync(String, String, RequestContext)
- Source:
- KnowledgeBases.cs
[Protocol Method] Get the status of a long-running operation.
- 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> GetOperationStatusAsync(string knowledgeBaseName, string operationId, Azure.RequestContext context);
abstract member GetOperationStatusAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetOperationStatusAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetOperationStatusAsync (knowledgeBaseName As String, operationId As String, context As RequestContext) As Task(Of Response)
Parameters
- knowledgeBaseName
- String
The knowledgeBase name.
- operationId
- String
The unique ID of the operation.
- 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
knowledgeBaseName or operationId is null.
knowledgeBaseName or operationId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetOperationStatusAsync(String, String, CancellationToken)
- Source:
- KnowledgeBases.cs
Get the status of a long-running operation.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.KnowledgeBaseOperationResponse>> GetOperationStatusAsync(string knowledgeBaseName, string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationStatusAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.KnowledgeBaseOperationResponse>>
override this.GetOperationStatusAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.KnowledgeBaseOperationResponse>>
Public Overridable Function GetOperationStatusAsync (knowledgeBaseName As String, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KnowledgeBaseOperationResponse))
Parameters
- knowledgeBaseName
- String
The knowledgeBase name.
- operationId
- String
The unique ID of the operation.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
knowledgeBaseName or operationId is null.
knowledgeBaseName or operationId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.