Compartilhar via


LanguageService.Translate Method

Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics.MicrosoftTranslationService
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Usage

'Usage
Dim instance As LanguageService
Dim appId As String
Dim text As String
Dim from As String
Dim to As String
Dim contentType As String
Dim category As String
Dim returnValue As String

returnValue = instance.Translate(appId, text, from, to, contentType, category)

Syntax

'Declaration
<OperationContractAttribute(Action:="http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction:="http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse")> _
Function Translate ( _
    appId As String, _
    text As String, _
    from As String, _
    to As String, _
    contentType As String, _
    category As String _
) As String
[OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse")] 
string Translate (
    string appId,
    string text,
    string from,
    string to,
    string contentType,
    string category
)
[OperationContractAttribute(Action=L"http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction=L"http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse")] 
String^ Translate (
    String^ appId, 
    String^ text, 
    String^ from, 
    String^ to, 
    String^ contentType, 
    String^ category
)
/** @attribute OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse") */ 
String Translate (
    String appId, 
    String text, 
    String from, 
    String to, 
    String contentType, 
    String category
)
OperationContractAttribute(Action="http://api.microsofttranslator.com/V2/LanguageService/Translate", ReplyAction="http://api.microsofttranslator.com/V2/LanguageService/TranslateResponse") 
function Translate (
    appId : String, 
    text : String, 
    from : String, 
    to : String, 
    contentType : String, 
    category : String
) : String

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

LanguageService Interface
LanguageService Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics.MicrosoftTranslationService Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.