Compartilhar via


QuestionAnsweringClientExtensions.AddQuestionAnsweringClient Método

Definição

Sobrecargas

AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registra uma QuestionAnsweringClient instância com a configuração carregada da instância fornecida configuration .

AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registra uma QuestionAnsweringClient instância com o provedor endpoint e credential.

AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Origem:
QuestionAnsweringClientExtensions.cs

Registra uma QuestionAnsweringClient instância com a configuração carregada da instância fornecida configuration .

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Language.QuestionAnswering.QuestionAnsweringClient,Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions> AddQuestionAnsweringClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddQuestionAnsweringClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Language.QuestionAnswering.QuestionAnsweringClient, Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddQuestionAnsweringClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of QuestionAnsweringClient, QuestionAnsweringClientOptions)

Parâmetros de tipo

TBuilder

Tipo do construtor de fábrica do cliente.

TConfiguration

Tipo da configuração do cliente.

Parâmetros

builder
TBuilder

O construtor de fábrica do cliente.

configuration
TConfiguration

A configuração do cliente.

Retornos

Um construtor de clientes do Azure.

Aplica-se a

AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Origem:
QuestionAnsweringClientExtensions.cs

Registra uma QuestionAnsweringClient instância com o provedor endpoint e credential.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Language.QuestionAnswering.QuestionAnsweringClient,Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions> AddQuestionAnsweringClient<TBuilder> (this TBuilder builder, Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddQuestionAnsweringClient : 'Builder * Uri * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.Language.QuestionAnswering.QuestionAnsweringClient, Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddQuestionAnsweringClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, credential As AzureKeyCredential) As IAzureClientBuilder(Of QuestionAnsweringClient, QuestionAnsweringClientOptions)

Parâmetros de tipo

TBuilder

Tipo do construtor de fábrica do cliente.

Parâmetros

builder
TBuilder

O construtor de fábrica do cliente.

endpoint
Uri

O ponto de extremidade de Respostas às Perguntas no qual operar.

credential
AzureKeyCredential

Um AzureKeyCredential usado para autenticar solicitações para o endpoint.

Retornos

Um construtor de clientes do Azure.

Aplica-se a