Compartir a través de


DictionaryExampleTextItem Class

Definition

Element containing the text with translation.

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

Constructors

DictionaryExampleTextItem(String, String)

Initializes a new instance of DictionaryExampleTextItem.

Properties

Text

Text to translate.

(Inherited from InputTextItem)
Translation

A string specifying the translated text previously returned by the Dictionary lookup operation. This should be the value from the normalizedTarget field in the translations list of the Dictionary lookup response. The service will return examples for the specific source-target word-pair.

Explicit Interface Implementations

IJsonModel<DictionaryExampleTextItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DictionaryExampleTextItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<InputTextItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from InputTextItem)
IJsonModel<InputTextItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from InputTextItem)
IPersistableModel<DictionaryExampleTextItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DictionaryExampleTextItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DictionaryExampleTextItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<InputTextItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from InputTextItem)
IPersistableModel<InputTextItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from InputTextItem)
IPersistableModel<InputTextItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from InputTextItem)

Applies to