你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
QuestionAnsweringClientExtensions.AddQuestionAnsweringClient 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
QuestionAnsweringClient使用从提供的 |
AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential) |
将 QuestionAnsweringClient 实例注册到提供程序 |
AddQuestionAnsweringClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
QuestionAnsweringClient使用从提供的 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)
类型参数
- TBuilder
客户端工厂生成器的类型。
- TConfiguration
客户端配置的类型。
参数
- builder
- TBuilder
客户端工厂生成器。
- configuration
- TConfiguration
客户端配置。
返回
Azure 客户端生成器。
适用于
AddQuestionAnsweringClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)
将 QuestionAnsweringClient 实例注册到提供程序 endpoint
和 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)
类型参数
- TBuilder
客户端工厂生成器的类型。
参数
- builder
- TBuilder
客户端工厂生成器。
- endpoint
- Uri
要对其操作的问题解答终结点。
- credential
- AzureKeyCredential
用于 AzureKeyCredential 对 的请求进行身份验证的 endpoint
。
返回
Azure 客户端生成器。