다음을 통해 공유


DocumentTranslationInput Constructors

Definition

Overloads

DocumentTranslationInput(TranslationSource, IEnumerable<TranslationTarget>)

Initializes a new instance of DocumentTranslationInput.

DocumentTranslationInput(Uri, Uri, String, TranslationGlossary)

Initializes a new instance of DocumentTranslationInput.

DocumentTranslationInput(TranslationSource, IEnumerable<TranslationTarget>)

Source:
DocumentTranslationInput.cs
Source:
DocumentTranslationInput.cs

Initializes a new instance of DocumentTranslationInput.

public DocumentTranslationInput (Azure.AI.Translation.Document.TranslationSource source, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Document.TranslationTarget> targets);
new Azure.AI.Translation.Document.DocumentTranslationInput : Azure.AI.Translation.Document.TranslationSource * seq<Azure.AI.Translation.Document.TranslationTarget> -> Azure.AI.Translation.Document.DocumentTranslationInput
Public Sub New (source As TranslationSource, targets As IEnumerable(Of TranslationTarget))

Parameters

source
TranslationSource

Source of the input documents.

targets
IEnumerable<TranslationTarget>

Location of the destination for the output.

Exceptions

source or targets is null.

Applies to

DocumentTranslationInput(Uri, Uri, String, TranslationGlossary)

Source:
DocumentTranslationInput.cs
Source:
DocumentTranslationInput.cs

Initializes a new instance of DocumentTranslationInput.

public DocumentTranslationInput (Uri sourceUri, Uri targetUri, string targetLanguageCode, Azure.AI.Translation.Document.TranslationGlossary glossary = default);
new Azure.AI.Translation.Document.DocumentTranslationInput : Uri * Uri * string * Azure.AI.Translation.Document.TranslationGlossary -> Azure.AI.Translation.Document.DocumentTranslationInput
Public Sub New (sourceUri As Uri, targetUri As Uri, targetLanguageCode As String, Optional glossary As TranslationGlossary = Nothing)

Parameters

sourceUri
Uri

The SAS URI for the source container containing documents to be translated. See the service documentation for the supported SAS permissions for accessing source storage containers/blobs: .

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: .

targetLanguageCode
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).

Applies to