ITranslatorService.GetLanguagesAsync Method

Definition

Retrieves the languages available for translation.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<string>> GetLanguagesAsync ();
abstract member GetLanguagesAsync : unit -> System.Threading.Tasks.Task<seq<string>>
Public Function GetLanguagesAsync () As Task(Of IEnumerable(Of String))

Returns

A string array containing the language codes supported for translation by Microsoft Translator Service.

Exceptions

The SubscriptionKey property hasn't been set.

The provided SubscriptionKey isn't valid or has expired.

Remarks

This method performs a non-blocking request for language codes.

For more information, go to https://docs.microsoft.com/azure/cognitive-services/translator/reference/v3-0-languages.

Applies to

See also