Taal

ConfirmPrompt Constructors

Definitie

Overloads

ConfirmPrompt(String, PromptValidator<Boolean>, String)

Initialiseert een nieuw exemplaar van de ConfirmPrompt klasse.

public ConfirmPrompt(string dialogId, Microsoft.Bot.Builder.Dialogs.PromptValidator<bool> validator = default, string defaultLocale = default);
new Microsoft.Bot.Builder.Dialogs.ConfirmPrompt : string * Microsoft.Bot.Builder.Dialogs.PromptValidator<bool> * string -> Microsoft.Bot.Builder.Dialogs.ConfirmPrompt
Public Sub New (dialogId As String, Optional validator As PromptValidator(Of Boolean) = Nothing, Optional defaultLocale As String = Nothing)

Parameters

dialogId
String

De ID om aan deze prompt toe te wijzen.

validator
PromptValidator<Boolean>

Optioneel, een PromptValidator<T> die extra, aangepaste validatie voor deze prompt bevat.

defaultLocale
String

Optioneel, de standaardlocatie die wordt gebruikt om taalspecifiek gedrag van de prompt te bepalen. De locatie is een ISO 639-code van 2, 3 of 4 tekens die een taal of taalfamilie vertegenwoordigt.

Opmerkingen

De waarde van dialogId moet uniek zijn binnen de DialogSet of ComponentDialog waaraan de prompt wordt toegevoegd.

Als de Locale van de DialogContext.Context.Activity wordt gespecificeerd, dan wordt die lokale gebruikt om taalspecifiek gedrag te bepalen; anders wordt de defaultLocale gebruikt. US-English wordt gebruikt als er geen taal of standaardlocatie beschikbaar is, of als de taal of locatie anders niet wordt ondersteund.

Van toepassing op

ConfirmPrompt(String, Dictionary<String,ValueTuple<Choice,Choice,ChoiceFactoryOptions>>, PromptValidator<Boolean>, String)

Initialiseert een nieuw exemplaar van de ConfirmPrompt klasse.

public ConfirmPrompt(string dialogId, System.Collections.Generic.Dictionary<string,(Microsoft.Bot.Builder.Dialogs.Choices.Choice, Microsoft.Bot.Builder.Dialogs.Choices.Choice, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions)> choiceDefaults, Microsoft.Bot.Builder.Dialogs.PromptValidator<bool> validator = default, string defaultLocale = default);
new Microsoft.Bot.Builder.Dialogs.ConfirmPrompt : string * System.Collections.Generic.Dictionary<string, ValueTuple<Microsoft.Bot.Builder.Dialogs.Choices.Choice, Microsoft.Bot.Builder.Dialogs.Choices.Choice, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions>> * Microsoft.Bot.Builder.Dialogs.PromptValidator<bool> * string -> Microsoft.Bot.Builder.Dialogs.ConfirmPrompt
Public Sub New (dialogId As String, choiceDefaults As Dictionary(Of String, ValueTuple(Of Choice, Choice, ChoiceFactoryOptions)), Optional validator As PromptValidator(Of Boolean) = Nothing, Optional defaultLocale As String = Nothing)

Parameters

dialogId
String

De ID om aan deze prompt toe te wijzen.

choiceDefaults
Dictionary<String,ValueTuple<Choice,Choice,ChoiceFactoryOptions>>

Overschrijft het woordenboek van door de Bot Framework SDK ondersteunde _choiceDefaults (voor promptlokalisatie). Moet worden doorgegeven aan elke ConfirmPrompt die de standaardinstellingen voor de aangepaste keuze nodig heeft.

validator
PromptValidator<Boolean>

Optioneel, een PromptValidator<T> die extra, aangepaste validatie voor deze prompt bevat.

defaultLocale
String

Optioneel, de standaardlocatie die wordt gebruikt om taalspecifiek gedrag van de prompt te bepalen. De locatie is een ISO 639-code van 2, 3 of 4 tekens die een taal of taalfamilie vertegenwoordigt.

Opmerkingen

De waarde van dialogId moet uniek zijn binnen de DialogSet of ComponentDialog waaraan de prompt wordt toegevoegd.

Als de Locale van de DialogContext.Context.Activity wordt gespecificeerd, dan wordt die lokale gebruikt om taalspecifiek gedrag te bepalen; anders wordt de defaultLocale gebruikt. US-English wordt gebruikt als er geen taal of standaardlocatie beschikbaar is, of als de taal of locatie anders niet wordt ondersteund.

Van toepassing op