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>
type TranslatedTextItem = class
    interface IJsonModel<TranslatedTextItem>
    interface IPersistableModel<TranslatedTextItem>
Public Class TranslatedTextItem
Implements IJsonModel(Of TranslatedTextItem), IPersistableModel(Of TranslatedTextItem)
Inheritance
TranslatedTextItem
Implements

Properties

Name Description
DetectedLanguage

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

Translations

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

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
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.

<param name="options">The ModelReaderWriterOptions to use.</param>
IPersistableModel<TranslatedTextItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to