Udostępnij za pośrednictwem


QuestionAnsweringClient Constructors

Definition

Overloads

QuestionAnsweringClient()

Protected constructor to allow mocking.

QuestionAnsweringClient(Uri, AzureKeyCredential)

Initializes a new instance of the QuestionAnsweringClient class.

QuestionAnsweringClient(Uri, TokenCredential)

Initializes a new instance of QuestionAnsweringClient.

QuestionAnsweringClient(Uri, AzureKeyCredential, QuestionAnsweringClientOptions)

Initializes a new instance of the QuestionAnsweringClient class.

QuestionAnsweringClient(Uri, TokenCredential, QuestionAnsweringClientOptions)

Initializes a new instance of QuestionAnsweringClient.

QuestionAnsweringClient()

Source:
QuestionAnsweringClient.cs

Protected constructor to allow mocking.

protected QuestionAnsweringClient ();
Protected Sub New ()

Applies to

QuestionAnsweringClient(Uri, AzureKeyCredential)

Source:
QuestionAnsweringClient.cs

Initializes a new instance of the QuestionAnsweringClient class.

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

Parameters

endpoint
Uri

The Question Answering endpoint on which to operate.

credential
AzureKeyCredential

An AzureKeyCredential used to authenticate requests to the endpoint.

Exceptions

endpoint or credential is null.

Applies to

QuestionAnsweringClient(Uri, TokenCredential)

Source:
QuestionAnsweringClient.cs

Initializes a new instance of QuestionAnsweringClient.

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

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.

Exceptions

endpoint or credential is null.

Applies to

QuestionAnsweringClient(Uri, AzureKeyCredential, QuestionAnsweringClientOptions)

Source:
QuestionAnsweringClient.cs

Initializes a new instance of the QuestionAnsweringClient class.

public QuestionAnsweringClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions options);
new Azure.AI.Language.QuestionAnswering.QuestionAnsweringClient : Uri * Azure.AzureKeyCredential * Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions -> Azure.AI.Language.QuestionAnswering.QuestionAnsweringClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As QuestionAnsweringClientOptions)

Parameters

endpoint
Uri

The Question Answering endpoint on which to operate.

credential
AzureKeyCredential

An AzureKeyCredential used to authenticate requests to the endpoint.

options
QuestionAnsweringClientOptions

Optional QuestionAnsweringClientOptions to customize requests sent to the endpoint.

Exceptions

endpoint or credential is null.

Applies to

QuestionAnsweringClient(Uri, TokenCredential, QuestionAnsweringClientOptions)

Source:
QuestionAnsweringClient.cs

Initializes a new instance of QuestionAnsweringClient.

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

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
QuestionAnsweringClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to