TranslationTextModelFactory.TranslatedTextItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Element containing the translated text.
public static Azure.AI.Translation.Text.TranslatedTextItem TranslatedTextItem(Azure.AI.Translation.Text.DetectedLanguage detectedLanguage = default, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Text.TranslationText> translations = default);
static member TranslatedTextItem : Azure.AI.Translation.Text.DetectedLanguage * seq<Azure.AI.Translation.Text.TranslationText> -> Azure.AI.Translation.Text.TranslatedTextItem
Public Shared Function TranslatedTextItem (Optional detectedLanguage As DetectedLanguage = Nothing, Optional translations As IEnumerable(Of TranslationText) = Nothing) As TranslatedTextItem
Parameters
- detectedLanguage
- DetectedLanguage
The detectedLanguage property is only present in the result object when language auto-detection is requested.
- translations
- IEnumerable<TranslationText>
An array of translation results. The size of the array matches the number of target languages specified through the to query parameter.
Returns
A new TranslatedTextItem instance for mocking.