Share via


DocumentTranslationModelFactory.DocumentStatusResult Method

Definition

Overloads

DocumentStatusResult(String, Uri, BinaryData, DateTimeOffset, DateTimeOffset, DocumentTranslationStatus, String, Single, Int64)

Initializes a new instance of DocumentStatusResult for mocking purposes.

DocumentStatusResult(String, Uri, Uri, DateTimeOffset, DateTimeOffset, DocumentTranslationStatus, String, Single, Int64)

Initializes a new instance of DocumentStatusResult for mocking purposes.

DocumentStatusResult(String, Uri, BinaryData, DateTimeOffset, DateTimeOffset, DocumentTranslationStatus, String, Single, Int64)

Source:
DocumentTranslationModelFactory.cs
Source:
DocumentTranslationModelFactory.cs

Initializes a new instance of DocumentStatusResult for mocking purposes.

public static Azure.AI.Translation.Document.DocumentStatusResult DocumentStatusResult (string id, Uri sourceDocumentUri, BinaryData error, DateTimeOffset createdOn, DateTimeOffset lastModified, Azure.AI.Translation.Document.DocumentTranslationStatus status, string translatedTo, float progress, long charactersCharged);
static member DocumentStatusResult : string * Uri * BinaryData * DateTimeOffset * DateTimeOffset * Azure.AI.Translation.Document.DocumentTranslationStatus * string * single * int64 -> Azure.AI.Translation.Document.DocumentStatusResult
Public Shared Function DocumentStatusResult (id As String, sourceDocumentUri As Uri, error As BinaryData, createdOn As DateTimeOffset, lastModified As DateTimeOffset, status As DocumentTranslationStatus, translatedTo As String, progress As Single, charactersCharged As Long) As DocumentStatusResult

Parameters

id
String

Sets the Id property.

sourceDocumentUri
Uri

Sets the SourceDocumentUri property.

error
BinaryData

Sets the Error property.

createdOn
DateTimeOffset

Sets the CreatedOn property.

lastModified
DateTimeOffset

Sets the LastModified property.

status
DocumentTranslationStatus

Sets the Status property.

translatedTo
String

Sets the TranslatedToLanguageCode property.

progress
Single

Sets the Azure.AI.Translation.Document.DocumentStatusResult.Progress property.

charactersCharged
Int64

Sets the CharactersCharged property.

Returns

A new instance of DocumentStatusResult for mocking purposes.

Applies to

DocumentStatusResult(String, Uri, Uri, DateTimeOffset, DateTimeOffset, DocumentTranslationStatus, String, Single, Int64)

Source:
DocumentTranslationModelFactory.cs
Source:
DocumentTranslationModelFactory.cs

Initializes a new instance of DocumentStatusResult for mocking purposes.

public static Azure.AI.Translation.Document.DocumentStatusResult DocumentStatusResult (string id, Uri sourceDocumentUri, Uri translatedDocumentUri, DateTimeOffset createdOn, DateTimeOffset lastModified, Azure.AI.Translation.Document.DocumentTranslationStatus status, string translatedTo, float progress, long charactersCharged);
static member DocumentStatusResult : string * Uri * Uri * DateTimeOffset * DateTimeOffset * Azure.AI.Translation.Document.DocumentTranslationStatus * string * single * int64 -> Azure.AI.Translation.Document.DocumentStatusResult
Public Shared Function DocumentStatusResult (id As String, sourceDocumentUri As Uri, translatedDocumentUri As Uri, createdOn As DateTimeOffset, lastModified As DateTimeOffset, status As DocumentTranslationStatus, translatedTo As String, progress As Single, charactersCharged As Long) As DocumentStatusResult

Parameters

id
String

Sets the Id property.

sourceDocumentUri
Uri

Sets the SourceDocumentUri property.

translatedDocumentUri
Uri

Sets the TranslatedDocumentUri property.

createdOn
DateTimeOffset

Sets the CreatedOn property.

lastModified
DateTimeOffset

Sets the LastModified property.

status
DocumentTranslationStatus

Sets the Status property.

translatedTo
String

Sets the TranslatedToLanguageCode property.

progress
Single

Sets the Azure.AI.Translation.Document.DocumentStatusResult.Progress property.

charactersCharged
Int64

Sets the CharactersCharged property.

Returns

A new instance of DocumentStatusResult for mocking purposes.

Applies to