Delen via


DocumentTranslationInput.AddTarget Method

Definition

Add a TranslationTarget to the translation input.

public void AddTarget (Uri targetUri, string languageCode, Azure.AI.Translation.Document.TranslationGlossary glossary = default, string categoryId = default);
member this.AddTarget : Uri * string * Azure.AI.Translation.Document.TranslationGlossary * string -> unit
Public Sub AddTarget (targetUri As Uri, languageCode As String, Optional glossary As TranslationGlossary = Nothing, Optional categoryId As String = Nothing)

Parameters

targetUri
Uri

The SAS URI for the target container to which the translated documents will be written. See the service documentation for the supported SAS permissions for accessing target storage containers/blobs: .

languageCode
String

Language code to translate documents to. For supported languages see .

glossary
TranslationGlossary

Custom TranslationGlossary to be used in the translation operation. For supported file types see GetSupportedFormatsAsync(Nullable<FileFormatType>, CancellationToken).

categoryId
String

Category/custom model ID for using custom translation.

Applies to