Udostępnij za pośrednictwem


DocumentTranslationModelFactory.TranslationStatusResult Method

Definition

Initializes a new instance of TranslationStatusResult for mocking purposes.

public static Azure.AI.Translation.Document.TranslationStatusResult TranslationStatusResult (string id, DateTimeOffset createdOn, DateTimeOffset lastModified, Azure.AI.Translation.Document.DocumentTranslationStatus status, BinaryData error, int total, int failed, int success, int inProgress, int notYetStarted, int canceled, long totalCharacterCharged);
static member TranslationStatusResult : string * DateTimeOffset * DateTimeOffset * Azure.AI.Translation.Document.DocumentTranslationStatus * BinaryData * int * int * int * int * int * int * int64 -> Azure.AI.Translation.Document.TranslationStatusResult
Public Shared Function TranslationStatusResult (id As String, createdOn As DateTimeOffset, lastModified As DateTimeOffset, status As DocumentTranslationStatus, error As BinaryData, total As Integer, failed As Integer, success As Integer, inProgress As Integer, notYetStarted As Integer, canceled As Integer, totalCharacterCharged As Long) As TranslationStatusResult

Parameters

id
String

Sets the Id property.

createdOn
DateTimeOffset

Sets the CreatedOn property.

lastModified
DateTimeOffset

Sets the LastModified property.

status
DocumentTranslationStatus

Sets the Status property.

error
BinaryData

Sets the Error property.

total
Int32

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.Total and the DocumentsTotal properties.

failed
Int32

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.Failed and the DocumentsFailed properties.

success
Int32

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.Success and the DocumentsSucceeded properties.

inProgress
Int32

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.InProgress and the DocumentsInProgress properties.

notYetStarted
Int32

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.NotYetStarted and the DocumentsNotStarted properties.

canceled
Int32

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.Cancelled and the DocumentsCanceled properties.

totalCharacterCharged
Int64

Sets the Azure.AI.Translation.Document.TranslationStatusSummary.TotalCharacterCharged and the TotalCharactersCharged properties.

Returns

A new instance of TranslationStatusResult for mocking purposes.

Applies to