DocumentTranslationClient.GetTranslationStatusAsync 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
GetTranslationStatusAsync(Guid, RequestContext) |
[Protocol Method] Returns the status for a document translation request
|
GetTranslationStatusAsync(Guid, CancellationToken) |
Returns the status for a document translation request. |
GetTranslationStatusAsync(Guid, RequestContext)
- Source:
- DocumentTranslationClient.cs
- Source:
- DocumentTranslationClient.cs
[Protocol Method] Returns the status for a document translation request
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetTranslationStatusAsync(Guid, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> GetTranslationStatusAsync (Guid translationId, Azure.RequestContext context);
public virtual System.Threading.Tasks.Task<Azure.Response> GetTranslationStatusAsync (Guid id, Azure.RequestContext context);
abstract member GetTranslationStatusAsync : Guid * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTranslationStatusAsync : Guid * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
abstract member GetTranslationStatusAsync : Guid * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTranslationStatusAsync : Guid * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetTranslationStatusAsync (translationId As Guid, context As RequestContext) As Task(Of Response)
Public Overridable Function GetTranslationStatusAsync (id As Guid, context As RequestContext) As Task(Of Response)
Parameters
- translationIdid
- Guid
Format - uuid. The operation id.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
Service returned a non-success status code.
Applies to
GetTranslationStatusAsync(Guid, CancellationToken)
- Source:
- DocumentTranslationClient.cs
- Source:
- DocumentTranslationClient.cs
Returns the status for a document translation request.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>> GetTranslationStatusAsync (Guid translationId, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>> GetTranslationStatusAsync (Guid id, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTranslationStatusAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>>
override this.GetTranslationStatusAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>>
abstract member GetTranslationStatusAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>>
override this.GetTranslationStatusAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>>
Public Overridable Function GetTranslationStatusAsync (translationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TranslationStatusResult))
Public Overridable Function GetTranslationStatusAsync (id As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TranslationStatusResult))
Parameters
- translationIdid
- Guid
Format - uuid. The operation id.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Remarks
Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
Applies to
Azure SDK for .NET