Detect Method

Google API

Detect the language for this text.

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

Syntax

C#
public string Detect(
	string text,
	out bool isReliable,
	out double confidence
)
Visual Basic (Declaration)
Public Function Detect ( _
	text As String, _
	<OutAttribute> ByRef isReliable As Boolean, _
	<OutAttribute> ByRef confidence As Double _
) As String
Visual C++
public:
String^ Detect(
	String^ text, 
	[OutAttribute] bool% isReliable, 
	[OutAttribute] double% confidence
)

Parameters

text
Type: System..::.String
The text you want to test.
isReliable
Type: System..::.Boolean %
Whether the result is reliable
confidence
Type: System..::.Double %
The confidence percent of the result.

Return Value

The detected language.

Exceptions

ExceptionCondition
Google.API..::.GoogleAPIExceptionDetect failed.

See Also