GoogleTranslateTranslateAsync Method
Note: This API is now obsolete.
Asynchronously 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 Task<string> TranslateAsync(
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 TranslateAsync (
text As String,
from As GoogleLanguage,
to As GoogleLanguage
) As Task(Of String)
Dim text As String
Dim from As GoogleLanguage
Dim to As GoogleLanguage
Dim returnValue As Task(Of String)
returnValue = GoogleTranslate.TranslateAsync(text,
from, to)
public:
[ObsoleteAttribute(L"Google free API is now limited to few searchs. Use the paid API instead.",
true)]
static Task<String^>^ TranslateAsync(
String^ text,
GoogleLanguage from,
GoogleLanguage to
)
[<ObsoleteAttribute("Google free API is now limited to few searchs. Use the paid API instead.",
true)>]
static member TranslateAsync :
text : string *
from : GoogleLanguage *
to : GoogleLanguage -> Task<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.
TaskString
The translated text.
This is a code example.
No code example is currently available or this language may not be supported.
Dim translatedText As String = Await TranslateAsync("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
|