DocumentTranslationModelFactory.TranslationStatusResult 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.
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
- 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.StatusSummary.Total and the DocumentsTotal properties.
- failed
- Int32
Sets the Azure.AI.Translation.Document.StatusSummary.Failed and the DocumentsFailed properties.
- success
- Int32
Sets the Azure.AI.Translation.Document.StatusSummary.Success and the DocumentsSucceeded properties.
- inProgress
- Int32
Sets the Azure.AI.Translation.Document.StatusSummary.InProgress and the DocumentsInProgress properties.
- notYetStarted
- Int32
Sets the Azure.AI.Translation.Document.StatusSummary.NotYetStarted and the DocumentsNotStarted properties.
- canceled
- Int32
Sets the Azure.AI.Translation.Document.StatusSummary.Cancelled and the DocumentsCanceled properties.
- totalCharacterCharged
- Int64
Sets the Azure.AI.Translation.Document.StatusSummary.TotalCharacterCharged and the TotalCharactersCharged properties.
Returns
A new instance of TranslationStatusResult for mocking purposes.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기