DocumentTranslationClient.GetTranslationStatus 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
GetTranslationStatus(Guid, RequestContext) |
[Protocol Method] Returns the status for a document translation request
|
GetTranslationStatus(Guid, CancellationToken) |
Returns the status for a document translation request. |
GetTranslationStatus(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 GetTranslationStatus(Guid, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response GetTranslationStatus (Guid translationId, Azure.RequestContext context);
public virtual Azure.Response GetTranslationStatus (Guid id, Azure.RequestContext context);
abstract member GetTranslationStatus : Guid * Azure.RequestContext -> Azure.Response
override this.GetTranslationStatus : Guid * Azure.RequestContext -> Azure.Response
abstract member GetTranslationStatus : Guid * Azure.RequestContext -> Azure.Response
override this.GetTranslationStatus : Guid * Azure.RequestContext -> Azure.Response
Public Overridable Function GetTranslationStatus (translationId As Guid, context As RequestContext) As Response
Public Overridable Function GetTranslationStatus (id As Guid, context As RequestContext) As 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
GetTranslationStatus(Guid, CancellationToken)
- Source:
- DocumentTranslationClient.cs
- Source:
- DocumentTranslationClient.cs
Returns the status for a document translation request.
public virtual Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult> GetTranslationStatus (Guid translationId, System.Threading.CancellationToken cancellationToken = default);
public virtual Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult> GetTranslationStatus (Guid id, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTranslationStatus : Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>
override this.GetTranslationStatus : Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>
abstract member GetTranslationStatus : Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>
override this.GetTranslationStatus : Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.TranslationStatusResult>
Public Overridable Function GetTranslationStatus (translationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TranslationStatusResult)
Public Overridable Function GetTranslationStatus (id As Guid, Optional cancellationToken As CancellationToken = Nothing) As 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