ITranslatorService.GetLanguagesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.