QuestionAnsweringClientExtensions.AddQuestionAnsweringClient Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Inscrit un QuestionAnsweringClient instance avec la configuration chargée à partir de la instance fournie |
AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential) |
Inscrit un QuestionAnsweringClient instance auprès du fournisseur |
AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
Inscrit un QuestionAnsweringClient instance avec la configuration chargée à partir de la instance fournie 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)
Paramètres de type
- TBuilder
Type du générateur de fabrique client.
- TConfiguration
Type de configuration du client.
Paramètres
- builder
- TBuilder
Générateur de fabrique client.
- configuration
- TConfiguration
Configuration du client.
Retours
Un générateur de client Azure.
S’applique à
AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)
Inscrit un QuestionAnsweringClient instance auprès du fournisseur endpoint
et 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)
Paramètres de type
- TBuilder
Type du générateur de fabrique client.
Paramètres
- builder
- TBuilder
Générateur de fabrique client.
- endpoint
- Uri
Point de terminaison de réponse aux questions sur lequel opérer.
- credential
- AzureKeyCredential
AzureKeyCredential utilisé pour authentifier les demandes adressées au endpoint
.
Retours
Un générateur de client Azure.
S’applique à
Azure SDK for .NET