你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentTranslationInput Class

Definition

Input for a translation operation. This requires that you have your source document or documents in an Azure Blob Storage container. The source document(s) are translated and written to the location provided in the TranslationTarget.

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

Constructors

DocumentTranslationInput(TranslationSource, IEnumerable<TranslationTarget>)

Initializes a new instance of DocumentTranslationInput.

DocumentTranslationInput(Uri, Uri, String, TranslationGlossary)

Initializes a new instance of DocumentTranslationInput.

Properties

Source

Source of the input documents.

StorageUriKind

Storage URI kind of the input documents source string.

Targets

Location of the destination for the output.

Methods

AddTarget(Uri, String, TranslationGlossary, String)

Add a TranslationTarget to the translation input.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DocumentTranslationInput>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DocumentTranslationInput>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DocumentTranslationInput>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DocumentTranslationInput>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DocumentTranslationInput>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to