ITranslatorService Interface

Definition

The ITranslatorServiceClient interface specifies properties and methods to translate text in various supported languages.

C#
public interface ITranslatorService
Derived

Properties

Language

Gets or sets the string representing the supported language code to translate the text in.

SubscriptionKey

Gets or sets the Subscription key that is necessary to use Microsoft Translator Service.

Methods

DetectLanguageAsync(String)

Detects the language of a text.

DetectLanguagesWithResponseAsync(IEnumerable<String>)

Detects the language of a text.

DetectLanguageWithResponseAsync(String)

Detects the language of a text.

GetLanguageNamesAsync(String)

Retrieves friendly names for the languages available for text translation.

GetLanguagesAsync()

Retrieves the languages available for translation.

InitializeAsync()

Initializes the TranslatorService class by getting an access token for the service.

InitializeAsync(String, String)

Initializes the TranslatorService class by getting an access token for the service.

TranslateAsync(String, String, String)

Translates a text string into the specified language.

TranslateAsync(String, String)

Translates a text string into the specified language.

TranslateWithResponseAsync(IEnumerable<String>, IEnumerable<String>)

Translates a list of sentences into the specified languages.

TranslateWithResponseAsync(IEnumerable<String>, String, IEnumerable<String>)

Translates a list of sentences into the specified languages.

TranslateWithResponseAsync(IEnumerable<String>, String, String)

Translates a list of sentences into the specified language.

TranslateWithResponseAsync(String, IEnumerable<String>)

Translates a text string into the specified languages.

TranslateWithResponseAsync(String, String, IEnumerable<String>)

Translates a text into the specified languages.

TranslateWithResponseAsync(String, String, String)

Translates a text string into the specified languages.

TranslateWithResponseAsync(String, String)

Translates a text string into the specified language.

Applies to

Producto Versiones
Windows Community Toolkit 6.1.1