C# Class Microsoft.TranslatorContainer

Inheritance: System.Data.Services.Client.DataServiceContext
Afficher le fichier Open project: ibgib/LearnLanguages Class Usage Examples

Méthodes publiques

Méthode Description
Detect ( String Text ) : DataServiceQuery

GetLanguagesForTranslation ( ) : DataServiceQuery

Translate ( String Text, String To, String From ) : DataServiceQuery

TranslatorContainer ( Uri serviceRoot ) : System

Method Details

Detect() public méthode

public Detect ( String Text ) : DataServiceQuery
Text String the text whose language is to be identified Sample Values : hello
Résultat DataServiceQuery

GetLanguagesForTranslation() public méthode

public GetLanguagesForTranslation ( ) : DataServiceQuery
Résultat DataServiceQuery

Translate() public méthode

public Translate ( String Text, String To, String From ) : DataServiceQuery
Text String the text to translate Sample Values : hello
To String the language code to translate the text into Sample Values : nl
From String the language code of the translation text Sample Values : en
Résultat DataServiceQuery

TranslatorContainer() public méthode

public TranslatorContainer ( Uri serviceRoot ) : System
serviceRoot System.Uri
Résultat System