Share via


TextTranslationClient.LookupDictionaryEntriesAsync Method

Definition

Overloads

LookupDictionaryEntriesAsync(String, String, String, String, CancellationToken)

Dictionary Lookup.

LookupDictionaryEntriesAsync(String, String, String, Guid, CancellationToken)

Dictionary Lookup.

LookupDictionaryEntriesAsync(String, String, IEnumerable<String>, String, CancellationToken)

Dictionary Lookup.

LookupDictionaryEntriesAsync(String, String, IEnumerable<String>, Guid, CancellationToken)

Dictionary Lookup.

LookupDictionaryEntriesAsync(String, String, String, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

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.

word
String

A word to lookup in the dictionary.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or word is null.

Applies to

LookupDictionaryEntriesAsync(String, String, String, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

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.

word
String

A word to lookup in the dictionary.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or word is null.

Applies to

LookupDictionaryEntriesAsync(String, String, IEnumerable<String>, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

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.

words
IEnumerable<String>

Array of the words to lookup in the dictionary.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or words is null.

Applies to

LookupDictionaryEntriesAsync(String, String, IEnumerable<String>, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

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.

words
IEnumerable<String>

Array of the words to lookup in the dictionary.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or words is null.

Applies to