Click or drag to resize

LanguageTranslatorGetTranslation Method (LanguageTranslatorSuccessCallbackTranslations, LanguageTranslatorFailCallback, String, String, String, DictionaryString, Object)

Translate the provided text using the specified source and target.

Namespace:  IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool GetTranslation(
	LanguageTranslatorSuccessCallback<Translations> successCallback,
	LanguageTranslatorFailCallback failCallback,
	string text,
	string source,
	string target,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorSuccessCallbackTranslations
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorFailCallback
The fail callback.
text
Type: SystemString
The text to translate.
source
Type: SystemString
The ID of the source language.
target
Type: SystemString
The ID of the target language.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object

[Missing <param name="customData"/> documentation for "M:IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.GetTranslation(IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.SuccessCallback{IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.Translations},IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.FailCallback,System.String,System.String,System.String,System.Collections.Generic.Dictionary{System.String,System.Object})"]

Return Value

Type: Boolean
Returns true on success.
See Also