Share via


TextAnalyticsClient Constructors

Definition

Overloads

TextAnalyticsClient()

Protected constructor to allow mocking.

TextAnalyticsClient(Uri, AzureKeyCredential)

Initializes a new instance of the AzureKeyCredential class for the specified service instance.

TextAnalyticsClient(Uri, TokenCredential)

Initializes a new instance of the TextAnalyticsClient class for the specified service instance.

TextAnalyticsClient(Uri, AzureKeyCredential, TextAnalyticsClientOptions)

Initializes a new instance of the AzureKeyCredential class for the specified service instance.

TextAnalyticsClient(Uri, TokenCredential, TextAnalyticsClientOptions)

Initializes a new instance of the TextAnalyticsClient class for the specified service instance.

TextAnalyticsClient()

Source:
TextAnalyticsClient.cs

Protected constructor to allow mocking.

protected TextAnalyticsClient ();
Protected Sub New ()

Applies to

TextAnalyticsClient(Uri, AzureKeyCredential)

Source:
TextAnalyticsClient.cs

Initializes a new instance of the AzureKeyCredential class for the specified service instance.

public TextAnalyticsClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.TextAnalytics.TextAnalyticsClient : Uri * Azure.AzureKeyCredential -> Azure.AI.TextAnalytics.TextAnalyticsClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)

Parameters

endpoint
Uri

A Uri to the service the client sends requests to. Endpoint can be found in the Azure portal.

credential
AzureKeyCredential

The API key used to access the service. This will allow you to update the API key without creating a new client.

Applies to

TextAnalyticsClient(Uri, TokenCredential)

Source:
TextAnalyticsClient.cs

Initializes a new instance of the TextAnalyticsClient class for the specified service instance.

public TextAnalyticsClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.TextAnalytics.TextAnalyticsClient : Uri * Azure.Core.TokenCredential -> Azure.AI.TextAnalytics.TextAnalyticsClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

A Uri to the service the client sends requests to. Endpoint can be found in the Azure portal.

credential
TokenCredential

A TokenCredential used to authenticate requests to the service, such as DefaultAzureCredential.

Applies to

TextAnalyticsClient(Uri, AzureKeyCredential, TextAnalyticsClientOptions)

Source:
TextAnalyticsClient.cs

Initializes a new instance of the AzureKeyCredential class for the specified service instance.

public TextAnalyticsClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.TextAnalytics.TextAnalyticsClientOptions options);
new Azure.AI.TextAnalytics.TextAnalyticsClient : Uri * Azure.AzureKeyCredential * Azure.AI.TextAnalytics.TextAnalyticsClientOptions -> Azure.AI.TextAnalytics.TextAnalyticsClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As TextAnalyticsClientOptions)

Parameters

endpoint
Uri

A Uri to the service the client sends requests to. Endpoint can be found in the Azure portal.

credential
AzureKeyCredential

The API key used to access the service. This will allow you to update the API key without creating a new client.

options
TextAnalyticsClientOptions

TextAnalyticsClientOptions that allow callers to configure how requests are sent to the service.

Applies to

TextAnalyticsClient(Uri, TokenCredential, TextAnalyticsClientOptions)

Source:
TextAnalyticsClient.cs

Initializes a new instance of the TextAnalyticsClient class for the specified service instance.

public TextAnalyticsClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.TextAnalytics.TextAnalyticsClientOptions options);
new Azure.AI.TextAnalytics.TextAnalyticsClient : Uri * Azure.Core.TokenCredential * Azure.AI.TextAnalytics.TextAnalyticsClientOptions -> Azure.AI.TextAnalytics.TextAnalyticsClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As TextAnalyticsClientOptions)

Parameters

endpoint
Uri

A Uri to the service the client sends requests to. Endpoint can be found in the Azure portal.

credential
TokenCredential

A TokenCredential used to authenticate requests to the service, such as DefaultAzureCredential.

options
TextAnalyticsClientOptions

TextAnalyticsClientOptions that allow callers to configure how requests are sent to the service.

Applies to