InputTextItem Class

Definition

Element containing the text for translation.

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

Constructors

InputTextItem(String)

Initializes a new instance of InputTextItem.

Properties

Text

Text to translate.

Explicit Interface Implementations

IJsonModel<InputTextItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<InputTextItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<InputTextItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<InputTextItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<InputTextItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to