Partilhar via


SourceText Class

Definition

Input text in the default script of the source language.

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

Properties

Text

Input text in the default script of the source language.

Explicit Interface Implementations

IJsonModel<SourceText>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SourceText>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SourceText>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SourceText>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SourceText>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to