Udostępnij za pośrednictwem


DocumentTranslationModelFactory.TranslationTarget Method

Definition

Initializes a new instance of TranslationTarget.

public static Azure.AI.Translation.Document.TranslationTarget TranslationTarget (Uri targetUri = default, string categoryId = default, string languageCode = default, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Document.TranslationGlossary> glossaries = default, Azure.AI.Translation.Document.TranslationStorageSource? storageSource = default);
static member TranslationTarget : Uri * string * string * seq<Azure.AI.Translation.Document.TranslationGlossary> * Nullable<Azure.AI.Translation.Document.TranslationStorageSource> -> Azure.AI.Translation.Document.TranslationTarget
Public Shared Function TranslationTarget (Optional targetUri As Uri = Nothing, Optional categoryId As String = Nothing, Optional languageCode As String = Nothing, Optional glossaries As IEnumerable(Of TranslationGlossary) = Nothing, Optional storageSource As Nullable(Of TranslationStorageSource) = Nothing) As TranslationTarget

Parameters

targetUri
Uri

Location of the folder / container with your documents.

categoryId
String

Category / custom system for translation request.

languageCode
String

Target Language.

glossaries
IEnumerable<TranslationGlossary>

List of Glossary.

storageSource
Nullable<TranslationStorageSource>

Storage Source.

Returns

A new TranslationTarget instance for mocking.

Applies to