다음을 통해 공유


DocumentTranslationModelFactory.DocumentTranslateContent Method

Definition

Initializes a new instance of DocumentTranslateContent.

public static Azure.AI.Translation.Document.DocumentTranslateContent DocumentTranslateContent (System.IO.Stream document = default, System.Collections.Generic.IEnumerable<System.IO.Stream> glossary = default);
static member DocumentTranslateContent : System.IO.Stream * seq<System.IO.Stream> -> Azure.AI.Translation.Document.DocumentTranslateContent
Public Shared Function DocumentTranslateContent (Optional document As Stream = Nothing, Optional glossary As IEnumerable(Of Stream) = Nothing) As DocumentTranslateContent

Parameters

document
Stream

Document to be translated in the form.

glossary
IEnumerable<Stream>

Glossary-translation memory will be used during translation in the form.

Returns

A new DocumentTranslateContent instance for mocking.

Applies to