TextTranslationClient Constructors

Definition

Overloads

TextTranslationClient()

Initializes a new instance of TextTranslationClient for mocking.

TextTranslationClient(Uri)

Initializes a new instance of TextTranslationClient.

TextTranslationClient(TokenCredential, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient(Uri, TextTranslationClientOptions)

Initializes a new instance of TextTranslationClient.

TextTranslationClient(AzureKeyCredential, String, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient(TokenCredential, Uri, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient(AzureKeyCredential, Uri, String, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient(TokenCredential, Uri, String, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient(TokenCredential, String, String, String, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient(TokenCredential, Uri, String, String, String, TextTranslationClientOptions)

Initializes a new instance of the TextTranslationClient class.

TextTranslationClient()

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Initializes a new instance of TextTranslationClient for mocking.

protected TextTranslationClient ();
Protected Sub New ()

Applies to

TextTranslationClient(Uri)

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Initializes a new instance of TextTranslationClient.

public TextTranslationClient (Uri endpoint);
protected TextTranslationClient (Uri endpoint);
new Azure.AI.Translation.Text.TextTranslationClient : Uri -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (endpoint As Uri)
Protected Sub New (endpoint As Uri)

Parameters

endpoint
Uri

Supported Text Translation endpoints (protocol and hostname, for example: https://api.cognitive.microsofttranslator.com).

Exceptions

endpoint is null.

Applies to

TextTranslationClient(TokenCredential, TextTranslationClientOptions)

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.Core.TokenCredential credential, Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.Core.TokenCredential * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As TokenCredential, Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
TokenCredential

Cognitive Services Token

options
TextTranslationClientOptions

Translate Client Options

Applies to

TextTranslationClient(Uri, TextTranslationClientOptions)

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Initializes a new instance of TextTranslationClient.

public TextTranslationClient (Uri endpoint, Azure.AI.Translation.Text.TextTranslationClientOptions options);
protected TextTranslationClient (Uri endpoint, Azure.AI.Translation.Text.TextTranslationClientOptions options);
new Azure.AI.Translation.Text.TextTranslationClient : Uri * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (endpoint As Uri, options As TextTranslationClientOptions)
Protected Sub New (endpoint As Uri, options As TextTranslationClientOptions)

Parameters

endpoint
Uri

Supported Text Translation endpoints (protocol and hostname, for example: https://api.cognitive.microsofttranslator.com).

options
TextTranslationClientOptions

The options for configuring the client.

Exceptions

endpoint is null.

Applies to

TextTranslationClient(AzureKeyCredential, String, TextTranslationClientOptions)

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.AzureKeyCredential credential, string region = "global", Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.AzureKeyCredential * string * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As AzureKeyCredential, Optional region As String = "global", Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
AzureKeyCredential

Azure Key Credential

region
String

Azure Resource Region

options
TextTranslationClientOptions

Translate Client Options

Applies to

TextTranslationClient(TokenCredential, Uri, TextTranslationClientOptions)

Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.Core.TokenCredential credential, Uri endpoint, Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.Core.TokenCredential * Uri * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As TokenCredential, endpoint As Uri, Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
TokenCredential

Cognitive Services Token

endpoint
Uri

Service Endpoint

options
TextTranslationClientOptions

Translate Client Options

Applies to

TextTranslationClient(AzureKeyCredential, Uri, String, TextTranslationClientOptions)

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.AzureKeyCredential credential, Uri endpoint, string region = "global", Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.AzureKeyCredential * Uri * string * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As AzureKeyCredential, endpoint As Uri, Optional region As String = "global", Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
AzureKeyCredential

Azure Key Credential

endpoint
Uri

Service Endpoint

region
String

Azure Resource Region

options
TextTranslationClientOptions

Translate Client Options

Applies to

TextTranslationClient(TokenCredential, Uri, String, TextTranslationClientOptions)

Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.Core.TokenCredential credential, Uri endpoint, string tokenScope = "https://cognitiveservices.azure.com/.default", Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.Core.TokenCredential * Uri * string * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As TokenCredential, endpoint As Uri, Optional tokenScope As String = "https://cognitiveservices.azure.com/.default", Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
TokenCredential

Cognitive Services Token

endpoint
Uri

Service Endpoint

tokenScope
String

Token Scopes

options
TextTranslationClientOptions

Translate Client Options

Applies to

TextTranslationClient(TokenCredential, String, String, String, TextTranslationClientOptions)

Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.Core.TokenCredential credential, string resourceId, string region = "global", string tokenScope = "https://cognitiveservices.azure.com/.default", Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.Core.TokenCredential * string * string * string * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As TokenCredential, resourceId As String, Optional region As String = "global", Optional tokenScope As String = "https://cognitiveservices.azure.com/.default", Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
TokenCredential

Cognitive Services Token

resourceId
String

The value is the Resource ID for your Translator resource instance.

region
String

Azure Resource Region

tokenScope
String

Token Scopes

options
TextTranslationClientOptions

Translate Client Options

Applies to

TextTranslationClient(TokenCredential, Uri, String, String, String, TextTranslationClientOptions)

Source:
TextTranslationClient.cs

Initializes a new instance of the TextTranslationClient class.

public TextTranslationClient (Azure.Core.TokenCredential credential, Uri endpoint, string resourceId, string region = "global", string tokenScope = "https://cognitiveservices.azure.com/.default", Azure.AI.Translation.Text.TextTranslationClientOptions options = default);
new Azure.AI.Translation.Text.TextTranslationClient : Azure.Core.TokenCredential * Uri * string * string * string * Azure.AI.Translation.Text.TextTranslationClientOptions -> Azure.AI.Translation.Text.TextTranslationClient
Public Sub New (credential As TokenCredential, endpoint As Uri, resourceId As String, Optional region As String = "global", Optional tokenScope As String = "https://cognitiveservices.azure.com/.default", Optional options As TextTranslationClientOptions = Nothing)

Parameters

credential
TokenCredential

Cognitive Services Token

endpoint
Uri

Service Endpoint

resourceId
String

The value is the Resource ID for your Translator resource instance.

region
String

Azure Resource Region

tokenScope
String

Token Scopes

options
TextTranslationClientOptions

Translate Client Options

Applies to