Share via


TextTranslationSkill Constructor

Definition

Initializes a new instance of TextTranslationSkill.

public TextTranslationSkill (System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.InputFieldMappingEntry> inputs, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.OutputFieldMappingEntry> outputs, Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage defaultToLanguageCode);
new Azure.Search.Documents.Indexes.Models.TextTranslationSkill : seq<Azure.Search.Documents.Indexes.Models.InputFieldMappingEntry> * seq<Azure.Search.Documents.Indexes.Models.OutputFieldMappingEntry> * Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage -> Azure.Search.Documents.Indexes.Models.TextTranslationSkill
Public Sub New (inputs As IEnumerable(Of InputFieldMappingEntry), outputs As IEnumerable(Of OutputFieldMappingEntry), defaultToLanguageCode As TextTranslationSkillLanguage)

Parameters

inputs
IEnumerable<InputFieldMappingEntry>

Inputs of the skills could be a column in the source data set, or the output of an upstream skill.

outputs
IEnumerable<OutputFieldMappingEntry>

The output of a skill is either a field in a search index, or a value that can be consumed as an input by another skill.

defaultToLanguageCode
TextTranslationSkillLanguage

The language code to translate documents into for documents that don't specify the to language explicitly.

Exceptions

inputs or outputs is null.

Applies to