Share via


TextTranslationClient.LookupDictionaryEntries Method

Definition

Overloads

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

Dictionary Lookup.

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

Dictionary Lookup.

LookupDictionaryEntries(String, String, String, Guid, CancellationToken)

Dictionary Lookup.

LookupDictionaryEntries(String, String, String, String, CancellationToken)

Dictionary Lookup.

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

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

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

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

LookupDictionaryEntries(String, String, String, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Lookup.

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

LookupDictionaryEntries(String, String, String, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Lookup.

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