QnAMaker 构造函数

定义

重载

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

初始化 QnAMaker 类的新实例。

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)
已过时.

初始化 QnAMaker 类的新实例。

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

初始化 QnAMaker 类的新实例。

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)
已过时.

初始化 QnAMaker 类的新实例。

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

初始化 QnAMaker 类的新实例。

public QnAMaker (Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint endpoint, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options = default, System.Net.Http.HttpClient httpClient = default);
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (endpoint As QnAMakerEndpoint, Optional options As QnAMakerOptions = Nothing, Optional httpClient As HttpClient = Nothing)

参数

endpoint
QnAMakerEndpoint

要查询的知识库的终结点。

options
QnAMakerOptions

QnA Maker 知识库的选项。

httpClient
HttpClient

与 QnAMaker 通信的备用客户端。 如果为 null,则此实例使用默认客户端。

适用于

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)

注意

Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).

初始化 QnAMaker 类的新实例。

[System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")]
public QnAMaker (Microsoft.Bot.Configuration.QnAMakerService service, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options = default, System.Net.Http.HttpClient httpClient = default);
[<System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")>]
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Configuration.QnAMakerService * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (service As QnAMakerService, Optional options As QnAMakerOptions = Nothing, Optional httpClient As HttpClient = Nothing)

参数

service
QnAMakerService

配置中 QnA 服务详细信息。

options
QnAMakerOptions

QnA Maker 知识库的选项。

httpClient
HttpClient

与 QnAMaker 通信的备用客户端。 如果为 null,则此实例使用默认客户端。

属性

适用于

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

初始化 QnAMaker 类的新实例。

public QnAMaker (Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint endpoint, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Net.Http.HttpClient httpClient, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation = false);
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IBotTelemetryClient * bool -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (endpoint As QnAMakerEndpoint, options As QnAMakerOptions, httpClient As HttpClient, telemetryClient As IBotTelemetryClient, Optional logPersonalInformation As Boolean = false)

参数

endpoint
QnAMakerEndpoint

要查询的知识库的终结点。

options
QnAMakerOptions

QnA Maker 知识库的选项。

httpClient
HttpClient

与 QnAMaker 通信的备用客户端。 如果为 null,则此实例使用默认客户端。

telemetryClient
IBotTelemetryClient

用于记录遥测事件的 IBotTelemetryClient。

logPersonalInformation
Boolean

设置为 true 以在遥测事件中包含个人身份信息。

适用于

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)

注意

Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).

初始化 QnAMaker 类的新实例。

[System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")]
public QnAMaker (Microsoft.Bot.Configuration.QnAMakerService service, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Net.Http.HttpClient httpClient, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation = false);
[<System.Obsolete("Constructor is deprecated, please use QnAMaker(QnAMakerEndpoint endpoint, QnAMakerOptions options, HttpClient httpClient).")>]
new Microsoft.Bot.Builder.AI.QnA.QnAMaker : Microsoft.Bot.Configuration.QnAMakerService * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IBotTelemetryClient * bool -> Microsoft.Bot.Builder.AI.QnA.QnAMaker
Public Sub New (service As QnAMakerService, options As QnAMakerOptions, httpClient As HttpClient, telemetryClient As IBotTelemetryClient, Optional logPersonalInformation As Boolean = false)

参数

service
QnAMakerService

配置中 QnA 服务详细信息。

options
QnAMakerOptions

QnA Maker 知识库的选项。

httpClient
HttpClient

与 QnAMaker 通信的备用客户端。 如果为 null,则此实例使用默认客户端。

telemetryClient
IBotTelemetryClient

用于记录遥测事件的 IBotTelemetryClient。

logPersonalInformation
Boolean

设置为 true 以在遥测事件中包含个人身份信息。

属性

适用于