Compartilhar via


TextAnalysisClient Constructors

Definition

Overloads

TextAnalysisClient()

Initializes a new instance of TextAnalysisClient for mocking.

TextAnalysisClient(Uri, AzureKeyCredential)

Initializes a new instance of TextAnalysisClient.

TextAnalysisClient(Uri, TokenCredential)

Initializes a new instance of TextAnalysisClient.

TextAnalysisClient(Uri, AzureKeyCredential, TextAnalysisClientOptions)

Initializes a new instance of TextAnalysisClient.

TextAnalysisClient(Uri, TokenCredential, TextAnalysisClientOptions)

Initializes a new instance of TextAnalysisClient.

TextAnalysisClient()

Source:
TextAnalysisClient.cs

Initializes a new instance of TextAnalysisClient for mocking.

protected TextAnalysisClient ();
Protected Sub New ()

Applies to

TextAnalysisClient(Uri, AzureKeyCredential)

Source:
TextAnalysisClient.cs

Initializes a new instance of TextAnalysisClient.

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

Parameters

endpoint
Uri

Supported Cognitive Services endpoint (e.g., https://<resource-name>.api.cognitiveservices.azure.com).

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

TextAnalysisClient(Uri, TokenCredential)

Source:
TextAnalysisClient.cs

Initializes a new instance of TextAnalysisClient.

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

Parameters

endpoint
Uri

Supported Cognitive Services endpoint (e.g., https://<resource-name>.api.cognitiveservices.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

TextAnalysisClient(Uri, AzureKeyCredential, TextAnalysisClientOptions)

Source:
TextAnalysisClient.cs

Initializes a new instance of TextAnalysisClient.

public TextAnalysisClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Language.Text.TextAnalysisClientOptions options);
new Azure.AI.Language.Text.TextAnalysisClient : Uri * Azure.AzureKeyCredential * Azure.AI.Language.Text.TextAnalysisClientOptions -> Azure.AI.Language.Text.TextAnalysisClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As TextAnalysisClientOptions)

Parameters

endpoint
Uri

Supported Cognitive Services endpoint (e.g., https://<resource-name>.api.cognitiveservices.azure.com).

credential
AzureKeyCredential

A credential used to authenticate to an Azure Service.

options
TextAnalysisClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to

TextAnalysisClient(Uri, TokenCredential, TextAnalysisClientOptions)

Source:
TextAnalysisClient.cs

Initializes a new instance of TextAnalysisClient.

public TextAnalysisClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Language.Text.TextAnalysisClientOptions options);
new Azure.AI.Language.Text.TextAnalysisClient : Uri * Azure.Core.TokenCredential * Azure.AI.Language.Text.TextAnalysisClientOptions -> Azure.AI.Language.Text.TextAnalysisClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As TextAnalysisClientOptions)

Parameters

endpoint
Uri

Supported Cognitive Services endpoint (e.g., https://<resource-name>.cognitiveservices.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
TextAnalysisClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to