Język

QnAMaker Konstruktory

Definicja

Przeciążenia

QnAMaker(QnAMakerEndpoint, QnAMakerOptions, HttpClient)

Inicjuje nowe wystąpienie klasy 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)

Parametry

endpoint
QnAMakerEndpoint

Punkt końcowy bazy wiedzy do zapytania.

options
QnAMakerOptions

Opcje bazy wiedzy QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można rozmawiać z QnAMakerem. Jeśli null, używa się domyślnego klienta dla tej instancji.

Dotyczy

QnAMaker(QnAMakerService, QnAMakerOptions, HttpClient)

Uwaga

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

Inicjuje nowe wystąpienie klasy 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)

Parametry

service
QnAMakerService

Szczegóły usługi QnA z konfiguracji.

options
QnAMakerOptions

Opcje bazy wiedzy QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można rozmawiać z QnAMakerem. Jeśli null, używa się domyślnego klienta dla tej instancji.

Atrybuty

Dotyczy

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

Inicjuje nowe wystąpienie klasy 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)

Parametry

endpoint
QnAMakerEndpoint

Punkt końcowy bazy wiedzy do zapytania.

options
QnAMakerOptions

Opcje bazy wiedzy QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można rozmawiać z QnAMakerem. Jeśli null, używa się domyślnego klienta dla tej instancji.

telemetryClient
IBotTelemetryClient

IBotTelemetryClient używany do rejestrowania zdarzeń telemetrycznych.

logPersonalInformation
Boolean

Ustaw na true, aby uwzględnić dane osobowe w zdarzeniach telemetrycznych.

Dotyczy

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

Uwaga

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

Inicjuje nowe wystąpienie klasy 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)

Parametry

service
QnAMakerService

Szczegóły usługi QnA z konfiguracji.

options
QnAMakerOptions

Opcje bazy wiedzy QnA Maker.

httpClient
HttpClient

Alternatywny klient, z którym można rozmawiać z QnAMakerem. Jeśli null, używa się domyślnego klienta dla tej instancji.

telemetryClient
IBotTelemetryClient

IBotTelemetryClient używany do rejestrowania zdarzeń telemetrycznych.

logPersonalInformation
Boolean

Ustaw na true, aby uwzględnić dane osobowe w zdarzeniach telemetrycznych.

Atrybuty

Dotyczy