TranslateAndDetect Method (String, String, String, String)

Google API

Translate the text to to and auto detect which language the text is from.

Namespace:  Google.API.Translate
Assembly:  GoogleTranslateAPI (in GoogleTranslateAPI.dll) Version: 0.3.1.107 (0.3.1.107)

Syntax

C#
public string TranslateAndDetect(
	string text,
	string to,
	string format,
	out string from
)
Visual Basic (Declaration)
Public Function TranslateAndDetect ( _
	text As String, _
	to As String, _
	format As String, _
	<OutAttribute> ByRef from As String _
) As String
Visual C++
public:
String^ TranslateAndDetect(
	String^ text, 
	String^ to, 
	String^ format, 
	[OutAttribute] String^% from
)

Parameters

text
Type: System..::.String
The content to translate.
to
Type: System..::.String
The target language you want to translate to.
format
Type: System..::.String
The format of the text.
from
Type: System..::.String %
The detected language of the original text.

Return Value

The translate result.

Exceptions

ExceptionCondition
Google.API..::.GoogleAPIExceptionTranslate failed.

See Also