Delen via


AITranslationTextModelFactory.DictionaryExample Method

Definition

Initializes a new instance of DictionaryExample.

public static Azure.AI.Translation.Text.DictionaryExample DictionaryExample (string sourcePrefix = default, string sourceTerm = default, string sourceSuffix = default, string targetPrefix = default, string targetTerm = default, string targetSuffix = default);
static member DictionaryExample : string * string * string * string * string * string -> Azure.AI.Translation.Text.DictionaryExample
Public Shared Function DictionaryExample (Optional sourcePrefix As String = Nothing, Optional sourceTerm As String = Nothing, Optional sourceSuffix As String = Nothing, Optional targetPrefix As String = Nothing, Optional targetTerm As String = Nothing, Optional targetSuffix As String = Nothing) As DictionaryExample

Parameters

sourcePrefix
String

The string to concatenate before the value of sourceTerm to form a complete example. Do not add a space character, since it is already there when it should be. This value may be an empty string.

sourceTerm
String

A string equal to the actual term looked up. The string is added with sourcePrefix and sourceSuffix to form the complete example. Its value is separated so it can be marked in a user interface, e.g., by bolding it.

sourceSuffix
String

The string to concatenate after the value of sourceTerm to form a complete example. Do not add a space character, since it is already there when it should be. This value may be an empty string.

targetPrefix
String

A string similar to sourcePrefix but for the target.

targetTerm
String

A string similar to sourceTerm but for the target.

targetSuffix
String

A string similar to sourceSuffix but for the target.

Returns

A new DictionaryExample instance for mocking.

Applies to