GoogleTranslateTranslate Method
Note: This API is now obsolete.
Use GoogleTranslate service to translate the specified text into another language.
Namespace: DevCase.Core.Networking.GoogleServicesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ObsoleteAttribute("Google free API is now limited to few searchs. Use the paid API instead.",
true)]
public static string Translate(
string text,
GoogleLanguage from,
GoogleLanguage to
)
<ObsoleteAttribute("Google free API is now limited to few searchs. Use the paid API instead.",
true)>
Public Shared Function Translate (
text As String,
from As GoogleLanguage,
to As GoogleLanguage
) As String
Dim text As String
Dim from As GoogleLanguage
Dim to As GoogleLanguage
Dim returnValue As String
returnValue = GoogleTranslate.Translate(text,
from, to)
public:
[ObsoleteAttribute(L"Google free API is now limited to few searchs. Use the paid API instead.",
true)]
static String^ Translate(
String^ text,
GoogleLanguage from,
GoogleLanguage to
)
[<ObsoleteAttribute("Google free API is now limited to few searchs. Use the paid API instead.",
true)>]
static member Translate :
text : string *
from : GoogleLanguage *
to : GoogleLanguage -> string
No code example is currently available or this language may not be supported.
- text String
-
The string to translate.
- from GoogleLanguage
-
The source language.
- to GoogleLanguage
-
The target language.
String
The resulting translated text.
This is a code example.
No code example is currently available or this language may not be supported.
Dim translatedText As String = Translate("Hello World!", GoogleLanguage.Auto, GoogleLanguage.Es)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
text
|
InvalidEnumArgumentException
|
from or to
|