TextTranslationClientBuilderExtensions.AddTextTranslationClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddTextTranslationClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder>(TBuilder, TokenCredential) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential, String) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential, Uri) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder>(TBuilder, TokenCredential, Uri) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential, Uri, String) |
Registers a TextTranslationClient instance. |
AddTextTranslationClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddTextTranslationClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
- TConfiguration
Parameters
- builder
- TBuilder
The builder to register with.
- configuration
- TConfiguration
The configuration values.
Returns
Applies to
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder> (this TBuilder builder, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddTextTranslationClient : 'Builder * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, credential As AzureKeyCredential) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- credential
- AzureKeyCredential
Azure Credentials
Returns
Applies to
AddTextTranslationClient<TBuilder>(TBuilder, TokenCredential)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder> (this TBuilder builder, Azure.Core.TokenCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddTextTranslationClient : 'Builder * Azure.Core.TokenCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, credential As TokenCredential) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- credential
- TokenCredential
Cognitive Services Token
Returns
Applies to
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential, String)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder> (this TBuilder builder, Azure.AzureKeyCredential credential, string region) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddTextTranslationClient : 'Builder * Azure.AzureKeyCredential * string -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, credential As AzureKeyCredential, region As String) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- credential
- AzureKeyCredential
Azure Credentials
- region
- String
Region of Azure Resource
Returns
Applies to
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential, Uri)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder> (this TBuilder builder, Azure.AzureKeyCredential credential, Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddTextTranslationClient : 'Builder * Azure.AzureKeyCredential * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, credential As AzureKeyCredential, endpoint As Uri) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- credential
- AzureKeyCredential
Azure Credentials
- endpoint
- Uri
Endpoint of the translation service
Returns
Applies to
AddTextTranslationClient<TBuilder>(TBuilder, TokenCredential, Uri)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder> (this TBuilder builder, Azure.Core.TokenCredential credential, Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddTextTranslationClient : 'Builder * Azure.Core.TokenCredential * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, credential As TokenCredential, endpoint As Uri) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- credential
- TokenCredential
Cognitive Services Token
- endpoint
- Uri
Endpoint of the translation service
Returns
Applies to
AddTextTranslationClient<TBuilder>(TBuilder, AzureKeyCredential, Uri, String)
Registers a TextTranslationClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient,Azure.AI.Translation.Text.TextTranslationClientOptions> AddTextTranslationClient<TBuilder> (this TBuilder builder, Azure.AzureKeyCredential credential, Uri endpoint, string region) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddTextTranslationClient : 'Builder * Azure.AzureKeyCredential * Uri * string -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Translation.Text.TextTranslationClient, Azure.AI.Translation.Text.TextTranslationClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddTextTranslationClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, credential As AzureKeyCredential, endpoint As Uri, region As String) As IAzureClientBuilder(Of TextTranslationClient, TextTranslationClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- credential
- AzureKeyCredential
Azure Credentials
- endpoint
- Uri
Endpoint of the translation service
- region
- String
Region of Azure Resource
Returns
Applies to
Azure SDK for .NET