AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Implementation for accessing Translate Provides translation between English and one of six languages, or between one of the six languages and English.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.Translate.AmazonTranslateClient

Namespace: Amazon.Translate
Assembly: AWSSDK.Translate.dll
Version: 3.x.y.z

Syntax

C#
public class AmazonTranslateClient : AmazonServiceClient
         IAmazonService, IAmazonTranslate, IDisposable

The AmazonTranslateClient type exposes the following members

Constructors

NameDescription
Public Method AmazonTranslateClient()

Constructs AmazonTranslateClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.



    
        
    

             

Public Method AmazonTranslateClient(RegionEndpoint)

Constructs AmazonTranslateClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.



    
        
    

             

Public Method AmazonTranslateClient(AmazonTranslateConfig)

Constructs AmazonTranslateClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.



    
        
    

             

Public Method AmazonTranslateClient(AWSCredentials)

Constructs AmazonTranslateClient with AWS Credentials

Public Method AmazonTranslateClient(AWSCredentials, RegionEndpoint)

Constructs AmazonTranslateClient with AWS Credentials

Public Method AmazonTranslateClient(AWSCredentials, AmazonTranslateConfig)

Constructs AmazonTranslateClient with AWS Credentials and an AmazonTranslateClient Configuration object.

Public Method AmazonTranslateClient(string, string)

Constructs AmazonTranslateClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonTranslateClient(string, string, RegionEndpoint)

Constructs AmazonTranslateClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonTranslateClient(string, string, AmazonTranslateConfig)

Constructs AmazonTranslateClient with AWS Access Key ID, AWS Secret Key and an AmazonTranslateClient Configuration object.

Public Method AmazonTranslateClient(string, string, string)

Constructs AmazonTranslateClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonTranslateClient(string, string, string, RegionEndpoint)

Constructs AmazonTranslateClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonTranslateClient(string, string, string, AmazonTranslateConfig)

Constructs AmazonTranslateClient with AWS Access Key ID, AWS Secret Key and an AmazonTranslateClient Configuration object.

Properties

NameTypeDescription
Public Property Config Amazon.Runtime.IClientConfig Inherited from Amazon.Runtime.AmazonServiceClient.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method TranslateText(TranslateTextRequest)

Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.

  • Arabic (ar)

  • Chinese (Simplified) (zh)

  • French (fr)

  • German (de)

  • Portuguese (pt)

  • Spanish (es)

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

Public Method TranslateTextAsync(TranslateTextRequest, CancellationToken)

Initiates the asynchronous execution of the TranslateText operation.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms