QuestionAnsweringClientExtensions.AddQuestionAnsweringClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Registers a QuestionAnsweringClient instance with configuration loaded from the provided |
AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential) |
Registers a QuestionAnsweringClient instance with the provider |
AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
Registers a QuestionAnsweringClient instance with configuration loaded from the provided configuration
instance.
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)
Type Parameters
- TBuilder
Type of the client factory builder.
- TConfiguration
Type of the client configuration.
Parameters
- builder
- TBuilder
The client factory builder.
- configuration
- TConfiguration
The client configuration.
Returns
An Azure client builder.
Applies to
AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)
Registers a QuestionAnsweringClient instance with the provider endpoint
and 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)
Type Parameters
- TBuilder
Type of the client factory builder.
Parameters
- builder
- TBuilder
The client factory builder.
- endpoint
- Uri
The Question Answering endpoint on which to operate.
- credential
- AzureKeyCredential
A AzureKeyCredential used to authenticate requests to the endpoint
.
Returns
An Azure client builder.
Applies to
Azure SDK for .NET