Compartir a través de


QuestionAnsweringClient Constructores

Definición

Sobrecargas

QuestionAnsweringClient()

Constructor protegido para permitir la simulación.

QuestionAnsweringClient(Uri, AzureKeyCredential)

Inicializa una nueva instancia de la clase QuestionAnsweringClient.

QuestionAnsweringClient(Uri, TokenCredential)

Inicializa una nueva instancia de QuestionAnsweringClient.

QuestionAnsweringClient(Uri, AzureKeyCredential, QuestionAnsweringClientOptions)

Inicializa una nueva instancia de la clase QuestionAnsweringClient.

QuestionAnsweringClient(Uri, TokenCredential, QuestionAnsweringClientOptions)

Inicializa una nueva instancia de QuestionAnsweringClient.

QuestionAnsweringClient()

Source:
QuestionAnsweringClient.cs

Constructor protegido para permitir la simulación.

protected QuestionAnsweringClient ();
Protected Sub New ()

Se aplica a

QuestionAnsweringClient(Uri, AzureKeyCredential)

Source:
QuestionAnsweringClient.cs

Inicializa una nueva instancia de la clase QuestionAnsweringClient.

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)

Parámetros

endpoint
Uri

Punto de conexión de respuesta a preguntas en el que se va a operar.

credential
AzureKeyCredential

que AzureKeyCredential se usa para autenticar las solicitudes en .endpoint

Excepciones

endpoint o credential es null.

Se aplica a

QuestionAnsweringClient(Uri, TokenCredential)

Source:
QuestionAnsweringClient.cs

Inicializa una nueva instancia de 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)

Parámetros

endpoint
Uri

Punto de conexión de Cognitive Services compatible (por ejemplo, https://< resource-name.cognitiveservices.azure.com>).

credential
TokenCredential

Credencial usada para autenticarse en un servicio de Azure.

Excepciones

endpoint o credential es null.

Se aplica a

QuestionAnsweringClient(Uri, AzureKeyCredential, QuestionAnsweringClientOptions)

Source:
QuestionAnsweringClient.cs

Inicializa una nueva instancia de la clase QuestionAnsweringClient.

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)

Parámetros

endpoint
Uri

Punto de conexión de respuesta a preguntas en el que se va a operar.

credential
AzureKeyCredential

que AzureKeyCredential se usa para autenticar las solicitudes en .endpoint

options
QuestionAnsweringClientOptions

Opcional QuestionAnsweringClientOptions para personalizar las solicitudes enviadas al punto de conexión.

Excepciones

endpoint o credential es null.

Se aplica a

QuestionAnsweringClient(Uri, TokenCredential, QuestionAnsweringClientOptions)

Source:
QuestionAnsweringClient.cs

Inicializa una nueva instancia de 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)

Parámetros

endpoint
Uri

Punto de conexión de Cognitive Services compatible (por ejemplo, https://< resource-name.cognitiveservices.azure.com>).

credential
TokenCredential

Credencial usada para autenticarse en un servicio de Azure.

options
QuestionAnsweringClientOptions

Las opciones para configurar el cliente.

Excepciones

endpoint o credential es null.

Se aplica a