QnAMaker Constructors

Definition

Overloads

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Initializes a new instance of the QnAMaker class.

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)
Obsolete.

Initializes a new instance of the QnAMaker class.

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

Initializes a new instance of the QnAMaker class.

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

Initializes a new instance of the QnAMaker class.

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Initializes a new instance of the QnAMaker class.

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)

Parameters

endpoint
QnAMakerEndpoint

The endpoint of the knowledge base to query.

options
QnAMakerOptions

The options for the QnA Maker knowledge base.

httpClient
HttpClient

An alternate client with which to talk to QnAMaker. If null, a default client is used for this instance.

Applies to

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)

Caution

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

Initializes a new instance of the QnAMaker class.

[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)

Parameters

service
QnAMakerService

QnA service details from configuration.

options
QnAMakerOptions

The options for the QnA Maker knowledge base.

httpClient
HttpClient

An alternate client with which to talk to QnAMaker. If null, a default client is used for this instance.

Attributes

Applies to

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

Initializes a new instance of the QnAMaker class.

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)

Parameters

endpoint
QnAMakerEndpoint

The endpoint of the knowledge base to query.

options
QnAMakerOptions

The options for the QnA Maker knowledge base.

httpClient
HttpClient

An alternate client with which to talk to QnAMaker. If null, a default client is used for this instance.

telemetryClient
IBotTelemetryClient

The IBotTelemetryClient used for logging telemetry events.

logPersonalInformation
Boolean

Set to true to include personally identifiable information in telemetry events.

Applies to

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

Caution

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

Initializes a new instance of the QnAMaker class.

[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)

Parameters

service
QnAMakerService

QnA service details from configuration.

options
QnAMakerOptions

The options for the QnA Maker knowledge base.

httpClient
HttpClient

An alternate client with which to talk to QnAMaker. If null, a default client is used for this instance.

telemetryClient
IBotTelemetryClient

The IBotTelemetryClient used for logging telemetry events.

logPersonalInformation
Boolean

Set to true to include personally identifiable information in telemetry events.

Attributes

Applies to