C# Class Microsoft.TranslatorContainer

Inheritance: System.Data.Services.Client.DataServiceContext
Show file Open project: ibgib/LearnLanguages Class Usage Examples

Public Methods

Method Description
Detect ( String Text ) : DataServiceQuery

GetLanguagesForTranslation ( ) : DataServiceQuery

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

TranslatorContainer ( Uri serviceRoot ) : System

Method Details

Detect() public method

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

GetLanguagesForTranslation() public method

public GetLanguagesForTranslation ( ) : DataServiceQuery
return DataServiceQuery

Translate() public method

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
return DataServiceQuery

TranslatorContainer() public method

public TranslatorContainer ( Uri serviceRoot ) : System
serviceRoot System.Uri
return System