DocumentTranslationClient.GetDocumentStatus 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
GetDocumentStatus(Guid, Guid, RequestContext) |
[Protocol Method] Returns the status for a specific document
|
GetDocumentStatus(Guid, Guid, CancellationToken) |
Returns the status for a specific document. |
GetDocumentStatus(Guid, Guid, RequestContext)
- Source:
- DocumentTranslationClient.cs
- Source:
- DocumentTranslationClient.cs
[Protocol Method] Returns the status for a specific document
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetDocumentStatus(Guid, Guid, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response GetDocumentStatus (Guid translationId, Guid documentId, Azure.RequestContext context);
public virtual Azure.Response GetDocumentStatus (Guid id, Guid documentId, Azure.RequestContext context);
abstract member GetDocumentStatus : Guid * Guid * Azure.RequestContext -> Azure.Response
override this.GetDocumentStatus : Guid * Guid * Azure.RequestContext -> Azure.Response
abstract member GetDocumentStatus : Guid * Guid * Azure.RequestContext -> Azure.Response
override this.GetDocumentStatus : Guid * Guid * Azure.RequestContext -> Azure.Response
Public Overridable Function GetDocumentStatus (translationId As Guid, documentId As Guid, context As RequestContext) As Response
Public Overridable Function GetDocumentStatus (id As Guid, documentId As Guid, context As RequestContext) As Response
Parameters
- translationIdid
- Guid
Format - uuid. The batch id.
- documentId
- Guid
Format - uuid. The document 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
GetDocumentStatus(Guid, Guid, CancellationToken)
- Source:
- DocumentTranslationClient.cs
- Source:
- DocumentTranslationClient.cs
Returns the status for a specific document.
public virtual Azure.Response<Azure.AI.Translation.Document.DocumentStatusResult> GetDocumentStatus (Guid translationId, Guid documentId, System.Threading.CancellationToken cancellationToken = default);
public virtual Azure.Response<Azure.AI.Translation.Document.DocumentStatusResult> GetDocumentStatus (Guid id, Guid documentId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDocumentStatus : Guid * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.DocumentStatusResult>
override this.GetDocumentStatus : Guid * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.DocumentStatusResult>
abstract member GetDocumentStatus : Guid * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.DocumentStatusResult>
override this.GetDocumentStatus : Guid * Guid * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.DocumentStatusResult>
Public Overridable Function GetDocumentStatus (translationId As Guid, documentId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DocumentStatusResult)
Public Overridable Function GetDocumentStatus (id As Guid, documentId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DocumentStatusResult)
Parameters
- translationIdid
- Guid
Format - uuid. The batch id.
- documentId
- Guid
Format - uuid. The document id.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Remarks
Returns the translation status for a specific document based on the request Id and document Id.