Share via


TranslatedTextItem Class

Definition

Element containing the translated text.

public class TranslatedTextItem : System.ClientModel.Primitives.IJsonModel<Azure.AI.Translation.Text.TranslatedTextItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Translation.Text.TranslatedTextItem>
public class TranslatedTextItem
type TranslatedTextItem = class
    interface IJsonModel<TranslatedTextItem>
    interface IPersistableModel<TranslatedTextItem>
type TranslatedTextItem = class
Public Class TranslatedTextItem
Implements IJsonModel(Of TranslatedTextItem), IPersistableModel(Of TranslatedTextItem)
Public Class TranslatedTextItem
Inheritance
TranslatedTextItem
Implements

Properties

DetectedLanguage

The detectedLanguage property is only present in the result object when language auto-detection is requested.

SourceText

Input text in the default script of the source language. sourceText property is present only when the input is expressed in a script that's not the usual script for the language. For example, if the input were Arabic written in Latin script, then sourceText.text would be the same Arabic text converted into Arab script.

Translations

An array of translation results. The size of the array matches the number of target languages specified through the to query parameter.

Explicit Interface Implementations

IJsonModel<TranslatedTextItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<TranslatedTextItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<TranslatedTextItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<TranslatedTextItem>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<TranslatedTextItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to