TranslationSource Class

Definition

Source of the input documents.

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

Constructors

TranslationSource(Uri, String, String, String, String)

Initializes a new instance of TranslationSource.

TranslationSource(Uri)

Initializes a new instance of TranslationSource.

Properties

LanguageCode

Language code for the source documents. If none is specified, the source language will be auto-detected for each document.

Prefix

A case-sensitive prefix string to filter documents in the source path for translation. For example, when using a Azure storage blob Uri, use the prefix to restrict sub folders for translation.

SourceUri

Location of the folder / container or single file with your documents. See the service documentation for the supported SAS permissions for accessing source storage containers/blobs: .

Suffix

A case-sensitive suffix string to filter documents in the source path for translation. This is most often use for file extensions.

Explicit Interface Implementations

IJsonModel<TranslationSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<TranslationSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<TranslationSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<TranslationSource>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<TranslationSource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to