Partilhar via


TextTranslationClient.LookupDictionaryExamplesAsync Method

Definition

Overloads

LookupDictionaryExamplesAsync(String, String, InputTextWithTranslation, Guid, CancellationToken)

Dictionary Examples.

LookupDictionaryExamplesAsync(String, String, InputTextWithTranslation, String, CancellationToken)

Dictionary Examples.

LookupDictionaryExamplesAsync(String, String, IEnumerable<InputTextWithTranslation>, Guid, CancellationToken)

Dictionary Examples.

LookupDictionaryExamplesAsync(String, String, IEnumerable<InputTextWithTranslation>, String, CancellationToken)

Dictionary Examples.

LookupDictionaryExamplesAsync(String, String, InputTextWithTranslation, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>> LookupDictionaryExamplesAsync (string from, string to, Azure.AI.Translation.Text.InputTextWithTranslation content, Guid clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamplesAsync : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
override this.LookupDictionaryExamplesAsync : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
Public Overridable Function LookupDictionaryExamplesAsync (from As String, to As String, content As InputTextWithTranslation, Optional clientTraceId As Guid = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of DictionaryExampleItem)))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
InputTextWithTranslation

Array of the text to be sent to dictionary.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to

LookupDictionaryExamplesAsync(String, String, InputTextWithTranslation, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>> LookupDictionaryExamplesAsync (string from, string to, Azure.AI.Translation.Text.InputTextWithTranslation content, string clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamplesAsync : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
override this.LookupDictionaryExamplesAsync : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
Public Overridable Function LookupDictionaryExamplesAsync (from As String, to As String, content As InputTextWithTranslation, Optional clientTraceId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of DictionaryExampleItem)))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
InputTextWithTranslation

Array of the text to be sent to dictionary.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to

LookupDictionaryExamplesAsync(String, String, IEnumerable<InputTextWithTranslation>, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>> LookupDictionaryExamplesAsync (string from, string to, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Text.InputTextWithTranslation> content, Guid clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamplesAsync : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
override this.LookupDictionaryExamplesAsync : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
Public Overridable Function LookupDictionaryExamplesAsync (from As String, to As String, content As IEnumerable(Of InputTextWithTranslation), Optional clientTraceId As Guid = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of DictionaryExampleItem)))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
IEnumerable<InputTextWithTranslation>

Array of the text to be sent to dictionary.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to

LookupDictionaryExamplesAsync(String, String, IEnumerable<InputTextWithTranslation>, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>> LookupDictionaryExamplesAsync (string from, string to, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Text.InputTextWithTranslation> content, string clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamplesAsync : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
override this.LookupDictionaryExamplesAsync : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>>
Public Overridable Function LookupDictionaryExamplesAsync (from As String, to As String, content As IEnumerable(Of InputTextWithTranslation), Optional clientTraceId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of DictionaryExampleItem)))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
IEnumerable<InputTextWithTranslation>

Array of the text to be sent to dictionary.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to